spec/integration/overriding_virtus_spec.rb in virtus-1.0.2 vs spec/integration/overriding_virtus_spec.rb in virtus-1.0.3

- old
+ new

@@ -20,27 +20,27 @@ end end describe 'overriding an attribute getter' do specify 'calls the defined getter' do - Examples::Article.new.title.should == '<unknown>' + expect(Examples::Article.new.title).to eq('<unknown>') end specify 'super can be used to access the getter defined by virtus' do - Examples::Article.new(:title => 'example article').title.should == 'example article' + expect(Examples::Article.new(:title => 'example article').title).to eq('example article') end end describe 'overriding an attribute setter' do specify 'calls the defined setter' do article = Examples::Article.new(:title => "can't be changed") article.title = 'this will never be assigned' - article.title.should == "can't be changed" + expect(article.title).to eq("can't be changed") end specify 'super can be used to access the setter defined by virtus' do article = Examples::Article.new(:title => 'example article') article.title = 'my new title' - article.title.should == 'my new title' + expect(article.title).to eq('my new title') end end end