Today, I have made http://railscasts.com/episodes/275-how-i-test
It has been hard because there were new concepts for me.
The problems that I have found in the railscast are:
- In code "password_resets_spec.rb" after the "it "emails user when requesting password reset"" a "do" is needed
- Factory.define is deprecated, so I used FactoryGirl
- After "rake db:migrate", a command "rake db:test:prepare" is needed
I achieved pass all tests!!!!
Keine Kommentare:
Kommentar veröffentlichen