add validations for boolean attributes
This commit is contained in:
parent
2680371785
commit
0b559cdece
5 changed files with 11 additions and 3 deletions
|
@ -7,6 +7,7 @@ describe Issue do
|
|||
|
||||
describe "Validation" do
|
||||
it { should ensure_length_of(:description).is_within(0..2000) }
|
||||
it { should ensure_inclusion_of(:closed).in_array([true, false]) }
|
||||
end
|
||||
|
||||
describe 'modules' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue