With the new expect syntax in rspec-2.11, how is it possible to use the implicit subject? Is there a better way than explicitly referencing s
expect
subject
s
One could use the new named subject syntax, although it's not implicit.
describe User do subject(:author) { User.new } it 'is valid' do expect(author).to be_valid end end