Skip to content

Commit 98b84f5

Browse files
committed
Update the negative value from -100 to -1
1 parent a80ed38 commit 98b84f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/models/storage_location_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
it { is_expected.to validate_presence_of(:name) }
2323
it { is_expected.to validate_presence_of(:address) }
2424
it "ensures that square_footage cannot be negative" do
25-
expect(build(:storage_location, square_footage: -100)).not_to be_valid
25+
expect(build(:storage_location, square_footage: -1)).not_to be_valid
2626
expect(build(:storage_location, square_footage: 0)).to be_valid
2727
expect(build(:storage_location, square_footage: 100)).to be_valid
2828
expect(build(:storage_location, square_footage: nil)).to be_valid

0 commit comments

Comments
 (0)