diff --git a/lib/couchrest/model/validations/locale/en.yml b/lib/couchrest/model/validations/locale/en.yml index 942261f..016350b 100644 --- a/lib/couchrest/model/validations/locale/en.yml +++ b/lib/couchrest/model/validations/locale/en.yml @@ -1,5 +1,5 @@ en: errors: messages: - taken: "is already taken" + taken: "has already been taken" diff --git a/spec/couchrest/validations.rb b/spec/couchrest/validations.rb index ef01df6..063f62b 100644 --- a/spec/couchrest/validations.rb +++ b/spec/couchrest/validations.rb @@ -25,7 +25,7 @@ describe "Validations" do it "should not validate a non-unique document" do @obj = WithUniqueValidation.create(:title => 'title 1') @obj.should_not be_valid - @obj.errors[:title].should eql(['is already taken']) + @obj.errors[:title].should == ["has already been taken"] end it "should save already created document" do