Skip to content

Instantly share code, notes, and snippets.

@jpterry
Created June 16, 2014 19:18
Show Gist options
  • Save jpterry/2d347d5189dd7db50401 to your computer and use it in GitHub Desktop.
Save jpterry/2d347d5189dd7db50401 to your computer and use it in GitHub Desktop.
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