Skip to content

Commit

Permalink
Fixed problem with verifying model attribute using strings with escap…
Browse files Browse the repository at this point in the history
…ed quotes
  • Loading branch information
Michael MacDonald authored and ianwhite committed Apr 27, 2010
1 parent 35a8a3b commit 643b84a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion features/pickle/create_from_active_record.feature
Expand Up @@ -4,10 +4,12 @@ Feature: I can easily create models from my blueprints
I want to be able to create models with fields
So that I can create models quickly and easily in my features

@wip
Scenario: I create a user, and see if it looks right
Given a user exists with name: "Fred"
Then the user should not have a status

And the user's name should be "Fred"

Scenario: I create a user, and see if it looks right
Given a user exists with name: "Fred", status: "crayzee"
Then a user should exist with name: "Fred"
Expand Down
2 changes: 1 addition & 1 deletion rails_generators/pickle/templates/pickle_steps.rb
Expand Up @@ -82,6 +82,6 @@
when /^-?[0-9_]+$/
actual_value.send(expectation, eql(expected.to_i))
else
actual_value.to_s.send(expectation, eql(expected))
actual_value.to_s.send(expectation, eql(eval(expected)))
end
end

0 comments on commit 643b84a

Please sign in to comment.