summaryrefslogtreecommitdiff
path: root/test/acceptance/at_color_output_using_erb_templates.rb
blob: e17df875820a835a2218d73cc804867d2b727537 (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