spec/readme_spec.rb in with_model-2.1.6 vs spec/readme_spec.rb in with_model-2.1.7

- old
+ new

@@ -46,11 +46,11 @@ it 'can be accessed as a constant' do expect(BlogPost).to be end it 'has the module' do - expect(BlogPost.include?(MyModule)).to eq true + expect(BlogPost.include?(MyModule)).to be true end it 'has the class method' do expect(BlogPost.some_class_method).to eq 'chunky' end @@ -62,11 +62,11 @@ it 'can do all the things a regular model can' do record = BlogPost.new expect(record).not_to be_valid record.title = 'foo' expect(record).to be_valid - expect(record.save).to eq true + expect(record.save).to be true expect(record.reload).to eq record record.comments.create!(text: 'Lorem ipsum') expect(record.comments.count).to eq 1 end @@ -76,10 +76,10 @@ end with_model :Ford, superclass: Car it 'has a specified superclass' do - expect(Ford < Car).to eq true + expect(Ford < Car).to be true end end describe 'with_model can be run within RSpec :all hook' do with_model :BlogPost, scope: :all do