Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- expect{
- post :create, :name=> 'abc'
- }.to change(Event.count).from(0).to(1)
- TypeError: nil is not a symbol
- expect{
- post :create, :name=> 'abc'
- }.to change{Event.count}.from(0).to(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement