The the rspec-expectations documentation 
(http://rubydoc.info/gems/rspec-expectations/frames #4.2) says:

The one-liner syntax supported by 
rspec-core<http://rubydoc.info/gems/rspec-core>
 uses should even when config.syntax = :expect. It reads better than the 
alternative, and does not require a global monkey patch:

describe User do
   it { should validate_presence_of :email }
end 


The expect-syntax works, but the One-Liner-Syntax does NOT work out of the 
box. Do I have to activate the "shoulda gem" form thougtbot?

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rspec/-/7nNVcfwuWbIJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to