Skip to content

Commit

Permalink
small clean up to cukes for users
Browse files Browse the repository at this point in the history
  • Loading branch information
Collin Schaafsma committed Nov 12, 2010
1 parent 9c8be50 commit 2217092
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/admin/cucumber.rb
Expand Up @@ -17,7 +17,7 @@
So that I can have full control over the site
Scenario: Login as an admin
Given a logged in admin user
Given a logged in admin
When I am on the admin
Then I should see "Admin"
FILE
Expand Down
4 changes: 2 additions & 2 deletions templates/devise/cucumber.rb
Expand Up @@ -3,15 +3,15 @@
<<-'FILE'
Factory.define :user do |u|
u.sequence(:name) { |n| "Quick #{n}" }
u.sequence(:email) { |n| "info.#{n}@quickleft.com" }
u.sequence(:email) { |n| "user.#{n}@quickleft.com" }
u.password "password"
u.confirmed_at Time.new.to_s
u.confirmation_sent_at Time.new.to_s
u.password_confirmation { |u| u.password }
end
Factory.define :admin, :parent => :user do |admin|
admin.email "quickleft@quickleft.com"
admin.email "admin@quickleft.com"
admin.password "password"
admin.roles { [ Factory(:role, :name => 'Admin') ] }
end
Expand Down

0 comments on commit 2217092

Please sign in to comment.