spec/unit/translations_spec.rb in couchrest_model-2.1.0.rc1 vs spec/unit/translations_spec.rb in couchrest_model-2.2.0.beta1

- old
+ new

@@ -3,29 +3,29 @@ describe "ActiveModel Translations" do describe ".human_attribute_name" do it "should provide translation" do - Card.human_attribute_name(:first_name).should eql("First name") + expect(Card.human_attribute_name(:first_name)).to eql("First name") end end describe ".i18n_scope" do it "should provide activemodel default" do - Card.i18n_scope.should eql(:couchrest) + expect(Card.i18n_scope).to eql(:couchrest) end end describe ".lookup_ancestors" do it "should provide basic lookup" do - Cat.lookup_ancestors.should eql([Cat]) + expect(Cat.lookup_ancestors).to eql([Cat]) end it "should provide lookup with ancestors" do - ChildCat.lookup_ancestors.should eql([ChildCat, Cat]) + expect(ChildCat.lookup_ancestors).to eql([ChildCat, Cat]) end it "should provide Base if request directly" do - CouchRest::Model::Base.lookup_ancestors.should eql([CouchRest::Model::Base]) + expect(CouchRest::Model::Base.lookup_ancestors).to eql([CouchRest::Model::Base]) end end end