Skip to content

Commit

Permalink
Fix the failing test, validating against our increasing maxlength
Browse files Browse the repository at this point in the history
  • Loading branch information
R. Tyler Croy committed Aug 5, 2016
1 parent 3b1148c commit 176953e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/models/proposal_spec.rb
Original file line number Diff line number Diff line change
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 176953e

Please sign in to comment.