95
describe User do it { should be_valid } end
RSpec.configure do |c| c.alias_example_to :expect_it end RSpec::Core::MemoizedHelpers.module_eval do alias to should alias to_not should_not end
describe User do expect_it { to be_valid } end
89
describe Array do describe "when first created" do # Rather than: # it "should be empty" do # subject.should be_empty # end it { should be_empty } # or it { is_expected.to be_empty } end end
74
describe User do subject(:author) { User.new } it 'is valid' do expect(author).to be_valid end end