From b7ecbde15575ce44d74b2a783ec8de06b106aa2a Mon Sep 17 00:00:00 2001 From: Mark Maglana Date: Sun, 19 Sep 2010 16:43:36 +0800 Subject: [PATCH] Fix Then step --- features/step_definitions/_then_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/step_definitions/_then_steps.rb b/features/step_definitions/_then_steps.rb index 040c9eae45..4e077f5d4f 100755 --- a/features/step_definitions/_then_steps.rb +++ b/features/step_definitions/_then_steps.rb @@ -159,5 +159,5 @@ end Then /^(issue|task|story) (.+) should have (.+) set to (.+)$/ do |type, subject, attribute, value| issue = Issue.find_by_subject(subject) - "#{@story[attribute]}".should == value + issue[attribute].should == value.to_i end