The syntax itself (e.g. `it { should <matcher> }`) works just fine.
The `validate_presence_of` matcher is from shoulda, though.On Dec 6, 2:18 pm, netzfisch <[email protected]> wrote: > 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]. For more options, visit https://groups.google.com/groups/opt_out.
