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 de85a7e commit b163681Copy full SHA for b163681
app/views/items/_form.html.erb
@@ -106,4 +106,4 @@
106
if (limit) limit.disabled = !e.target.checked;
107
}
108
});
109
-</script>
+</script>
spec/models/partners/item_request_spec.rb
@@ -24,7 +24,11 @@
24
25
describe 'validations' do
26
it { should validate_presence_of(:quantity) }
27
- it { should validate_numericality_of(:quantity).only_integer.is_greater_than_or_equal_to(1) }
+ it {
28
+ should validate_numericality_of(:quantity)
29
+ .only_integer.is_greater_than_or_equal_to(1)
30
+ .with_message("quantity must be a whole number greater than or equal to 1")
31
+ }
32
it { should validate_presence_of(:name) }
33
34
it "should only be able to use item's request units" do
0 commit comments