Created
June 16, 2014 19:18
-
-
Save jpterry/2d347d5189dd7db50401 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
should "contain a sip_number_format that doesn't allow nil or bogus" do | |
@sip_integration.set!(:sip_number_format => :E164) | |
assert_raise ActiveRecord::StatementInvalid, /sip_number_format' cannot be null/ do | |
@sip_integration.set!(:sip_number_format => nil) | |
end | |
assert_equal :E164, @sip_integration.sip_number_format | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment