spec/keikoku/notification_spec.rb in keikokuc-0.0.2 vs spec/keikoku/notification_spec.rb in keikokuc-0.0.3
- old
+ new
@@ -35,7 +35,13 @@
result.should be_false
notification.remote_id.should be_nil
notification.errors[:attributes][:message].should == ['is not present']
end
+
+ it 'stores attributes as instance vars' do
+ notification = Notification.new(message: 'foo')
+ notification.message.should == 'foo'
+ end
+
end
end