remove validation and add specs

This commit is contained in:
Bilal
2020-07-14 18:47:43 +02:00
parent bde18ab0f1
commit d12cec8487
3 changed files with 31 additions and 6 deletions

View File

@@ -13,8 +13,4 @@ RSpec.describe TaskRequest, type: :model do
subject { described_class }
it { is_expected.to respond_to(:order_by_recent) }
end
describe "#validations" do
it { should validate_numericality_of(:time_allowed).only_integer.is_greater_than_or_equal_to(2) }
end
end