Skip to content

Commit

Permalink
Remove extraneous double quotes that got included in a capture.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Apr 6, 2010
1 parent 35a8a3b commit 5c71670
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions features/pickle/create_from_active_record.feature
Expand Up @@ -7,6 +7,7 @@ Feature: I can easily create models from my blueprints
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 that 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"
Expand Down
1 change: 1 addition & 0 deletions rails_generators/pickle/templates/pickle_steps.rb
Expand Up @@ -82,6 +82,7 @@
when /^-?[0-9_]+$/
actual_value.send(expectation, eql(expected.to_i))
else
expected = expected.gsub(/^"/, '').gsub(/"$/, '')
actual_value.to_s.send(expectation, eql(expected))
end
end

0 comments on commit 5c71670

Please sign in to comment.