mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-02 23:38:50 +01:00
fix a failing spec for context model
This commit is contained in:
parent
eb53865ff9
commit
60b986a5b9
1 changed files with 2 additions and 3 deletions
|
|
@ -30,9 +30,8 @@ describe "Context validations" do
|
|||
it "should have two errors with a missing name" do
|
||||
@context.attributes = valid_context_attributes.except(:name)
|
||||
@context.should_not be_valid
|
||||
@context.should have(2).error_on(:name)
|
||||
@context.errors.on(:name)[0].should eql("context must have a name")
|
||||
@context.errors.on(:name)[1].should eql("context name must be less than 256 characters")
|
||||
@context.should have(1).error_on(:name)
|
||||
@context.error_on(:name).should include('context must have a name')
|
||||
end
|
||||
|
||||
it "should have one error with a name of more than 255 characters" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue