Closed jandudulski closed 11 years ago
Rspec has a new expectation syntax:
it { something.should be_valid } # vs it { expect(something).to be_valid }
... which is recommended by rspec devs. It simplifies monkey-patches in rspec and would be default option in rspec 3 (old syntax will be probably disabled).
You can read more on rspec dev blog.
/cc @sheerun @teamon @Ostrzy @szajbus @chytreg @jcieslar
ok
Obviously :+1:
We can add following to force new syntax:
config.expect_with :rspec do |c| c.syntax = :expect end
Rspec has a new expectation syntax:
... which is recommended by rspec devs. It simplifies monkey-patches in rspec and would be default option in rspec 3 (old syntax will be probably disabled).
You can read more on rspec dev blog.