8. config.mock_with :rspec do |mocks|
# Protect against typos
mocks.verify_doubled_constant_names = true
# Will be a default in RSpec 4
mocks.verify_partial_doubles = true
end
16. subject { app }
!
# Bundle rspec-its gem to use old syntax
!
its(:data) { should eq “hello” }
!
!
# Or convert examples manually
!
it “returns the data” do
!
expect(subject.data).to eq “hello”
end