Skip to content

Commit b163681

Browse files
committed
Fix some things
1 parent de85a7e commit b163681

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/views/items/_form.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@
106106
if (limit) limit.disabled = !e.target.checked;
107107
}
108108
});
109-
</script>
109+
</script>

spec/models/partners/item_request_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424

2525
describe 'validations' do
2626
it { should validate_presence_of(:quantity) }
27-
it { should validate_numericality_of(:quantity).only_integer.is_greater_than_or_equal_to(1) }
27+
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+
}
2832
it { should validate_presence_of(:name) }
2933

3034
it "should only be able to use item's request units" do

0 commit comments

Comments
 (0)