This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Test to prove that phone numbers work.

  • Loading branch information...
threedaymonk committed Apr 27, 2012
1 parent 422bcc9 commit 1a15b1e86aed2cf5e40cb585605edca3eecdce1a
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/unit/contact_test.rb
View
@@ -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

0 comments on commit 1a15b1e

Please sign in to comment.