We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a80ed38 commit 98b84f5Copy full SHA for 98b84f5
spec/models/storage_location_spec.rb
@@ -22,7 +22,7 @@
22
it { is_expected.to validate_presence_of(:name) }
23
it { is_expected.to validate_presence_of(:address) }
24
it "ensures that square_footage cannot be negative" do
25
- expect(build(:storage_location, square_footage: -100)).not_to be_valid
+ expect(build(:storage_location, square_footage: -1)).not_to be_valid
26
expect(build(:storage_location, square_footage: 0)).to be_valid
27
expect(build(:storage_location, square_footage: 100)).to be_valid
28
expect(build(:storage_location, square_footage: nil)).to be_valid
0 commit comments