extracted boolean validation logic into stand-alone validator

This commit is contained in:
Hauke Klement
2015-03-18 09:10:58 +01:00
parent 9be0e12990
commit d109663cb9
9 changed files with 40 additions and 7 deletions

View File

@ -34,6 +34,8 @@ describe ExecutionEnvironment do
it 'validates the presence of the network enabled flag' do
expect(execution_environment.errors[:network_enabled]).to be_present
execution_environment.update(network_enabled: false)
expect(execution_environment.errors[:network_enabled]).to be_blank
end
it 'validates the numericality of the permitted run time' do