Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- before(:each) do
- @valid_attributes = {
- :subject => "Test Subject",
- :body => "Body",
- :sender => User.make,
- :recipient => User.make
- }
- end
- it "should require a subject" do
- #message = Message.create(@valid_attributes.delete(:subject)) #gives me errors on saying no method found: stringify keys
- message = Message.create(@valid_attributes[:subject] = nil) #works
- message == nil
- end
Add Comment
Please, Sign In to add comment