Created
February 11, 2009 01:08
-
-
Save bmabey/61743 to your computer and use it in GitHub Desktop.
fixjour problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scenario: User confirms his account # features/sign_up.feature:23 | |
Given I signed up with "email@person.com/password" # features/step_definitions/clearance_steps.rb:13 | |
can't convert Fixjour::MergingProxy into Hash (TypeError) | |
./features/step_definitions/clearance_steps.rb:16:in `/^I signed up with "(.*)\/(.*)"$/' | |
features/sign_up.feature:24:in `Given I signed up with "email@person.com/password"' | |
When I follow the confirmation link sent to "email@person.com" # features/step_definitions/clearance_steps.rb:53 | |
Then I should see "Confirmed email and signed in" # features/step_definitions/webrat_steps.rb:89 | |
And I should be signed in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Fixjour | |
# Does fixjour already have something like this already? | |
class Increment | |
@@counts = {} | |
def self.[](sym) | |
@@counts[sym] ||= 0 | |
@@counts[sym] += 1 | |
end | |
end | |
end | |
I = Fixjour::Increment | |
Fixjour do | |
# this works fine | |
#define_builder(User) do |klass, overrides| | |
#klass.new(:email => "user#{I[:user_email]}@email.com", :password => 'password', :password_confirmation => 'password') | |
#end | |
define_builder(User, | |
:email => "user#{I[:user_email]}@email.com", :password => 'password', :password_confirmation => 'password') | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given /^I signed up with "(.*)\/(.*)"$/ do |email, password| | |
user = create_user(:email => email, | |
:password => password, | |
:password_confirmation => password) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment