Skip to content

Commit

Permalink
Merge pull request #111 from rtyler/maxlength
Browse files Browse the repository at this point in the history
Fix the failing test, validating against our increased maxlength
  • Loading branch information
mghaught committed Sep 2, 2016
2 parents 3b1148c + 176953e commit a0dcb4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/models/proposal_spec.rb
Expand Up @@ -70,9 +70,9 @@
expect{proposal.save}.to change{proposal.uuid}.from(nil).to('greendalec')
end

it "limits abstracts to 600 characters or less" do
expect(build(:proposal, abstract: "S" * 600)).to be_valid
expect(build(:proposal, abstract: "S" * 601)).not_to be_valid
it "limits abstracts to 1000 characters or less" do
expect(build(:proposal, abstract: "S" * 1000)).to be_valid
expect(build(:proposal, abstract: "S" * 1001)).not_to be_valid
end
end

Expand Down

0 comments on commit a0dcb4e

Please sign in to comment.