summaryrefslogtreecommitdiff
path: root/test/acceptance/at_color_output_using_erb_templates.rb
blob: 0af103b8c73b73b37b80ed82b4f4480416cbe2ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# coding: utf-8

require_relative 'acceptance_test'

HighLine::AcceptanceTest.check do |t|
  t.desc =
    "This step checks if coloring "       \
    "with erb templates is working ok.\n" \
    "You should see the word _grass_ "    \
    "colored in green color"

  t.action = proc do
    say "The <%= color('grass', :green) %> should be green!"
  end

  t.question = "Do you see the word 'grass' on green color (y/n)? "
end