Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test to prove that phone numbers work.

  • Loading branch information...
commit 1a15b1e86aed2cf5e40cb585605edca3eecdce1a 1 parent 422bcc9
@threedaymonk threedaymonk authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/unit/contact_test.rb
View
12 test/unit/contact_test.rb
@@ -0,0 +1,12 @@
+require 'test_helper'
+
+class ContactTest < ActiveSupport::TestCase
+ test "should store multiple phone numbers" do
+ phone_numbers = ["0113 496 0123", "028 9018 1337"]
+ contact = Contact.create!(
+ name: "Name", phone_numbers: phone_numbers,
+ contactotron_id: 1
+ )
+ assert_equal phone_numbers, contact.reload.phone_numbers
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.