lib/irt/commands/test.rb in irt-1.1.1 vs lib/irt/commands/test.rb in irt-1.1.2
- old
+ new
@@ -8,11 +8,11 @@
mode = context.irt_mode
raise IRT::SessionModeError, "You cannot add a test description in #{mode} mode." unless mode == :interactive
desc_str = %(desc "#{description}")
context.current_line = desc_str
puts
- puts desc_str.interactive_color
+ puts IRT.dye(desc_str, :interactive_color)
puts
end
alias_method :dd, :add_desc
def add_test(description='')
@@ -37,10 +37,10 @@
end
desc_str = description.empty? ? '' : %(desc "#{description}"\n)
str = desc_str + test_str
context.current_line = str
puts
- puts str.interactive_color
+ puts IRT.dye(str, :interactive_color)
puts
end
alias_method :tt, :add_test
def save_as(path)