Skip to content

Commit a0dcb4e

Browse files
authored
Merge pull request #111 from rtyler/maxlength
Fix the failing test, validating against our increased maxlength
2 parents 3b1148c + 176953e commit a0dcb4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/models/proposal_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@
7070
expect{proposal.save}.to change{proposal.uuid}.from(nil).to('greendalec')
7171
end
7272

73-
it "limits abstracts to 600 characters or less" do
74-
expect(build(:proposal, abstract: "S" * 600)).to be_valid
75-
expect(build(:proposal, abstract: "S" * 601)).not_to be_valid
73+
it "limits abstracts to 1000 characters or less" do
74+
expect(build(:proposal, abstract: "S" * 1000)).to be_valid
75+
expect(build(:proposal, abstract: "S" * 1001)).not_to be_valid
7676
end
7777
end
7878

0 commit comments

Comments
 (0)