added tests for PR #74

This commit is contained in:
Gant
2014-06-30 15:49:11 -05:00
parent 35401e4018
commit 205e9df167

View File

@@ -82,6 +82,14 @@ describe 'validation' do
end
end
it 'ignores validation checks if debugging is set to true' do
@rmq.validation.valid?('taco loco', :digits).should == false
RubyMotionQuery::RMQ.debugging = true
@rmq.validation.valid?('taco loco', :digits).should == true
RubyMotionQuery::RMQ.debugging = false
@rmq.validation.valid?('taco loco', :digits).should == false
end
end
end