Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding two more tests, new factories + debugger.
Sweet stuff, moving more tests over. Also, I've decided I'm going to re-work the factories a bit, and put them in one file. Finally, I've seen the light about ruby-debugger, so i'm adding it in, since we're 1.8.7.
- Loading branch information
1 parent
ca1ffff
commit 9f03407
Showing
8 changed files
with
52 additions
and
32 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,6 @@ group :test do | |
gem "rspec", "~>2.1.0" | ||
gem "webrat", "~>0.7.1" | ||
gem "steak", "~>1.0.0" | ||
|
||
gem "ruby-debug" | ||
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#These are the factory_girl factories, for testing. | ||
#Learn more about factory_girl here: http://github.com/thoughtbot/factory_girl | ||
|
||
#this is an email sequence, so we don't use the same email over and over! | ||
Factory.sequence :email do |n| | ||
"user#{n}@example.com" | ||
end | ||
|
||
#this factory defines a hacker | ||
Factory.define :hacker do |u| | ||
u.username "steve" | ||
u.email { Factory.next(:email) } | ||
u.password "foobar" | ||
#we need to set the password_confirmation to the same value as the password | ||
u.password_confirmation {|user| user.password } | ||
u.admin false | ||
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