spec/unit/intercom/message_thread_spec.rb in intercom-0.0.8 vs spec/unit/intercom/message_thread_spec.rb in intercom-0.0.9

- old
+ new

@@ -32,13 +32,13 @@ message_thread = Intercom::MessageThread.mark_as_read("email" => "jo@example.com", "thread_id" => 123) message_thread.messages.size.must_equal 3 end it "sets/gets allowed keys" do - params = {"email" => "me@example.com", :user_id => "abc123", "thread_id" => "123", "body" => "hello world", "read" => true} + params = {"email" => "me@example.com", :user_id => "abc123", "thread_id" => "123", "body" => "hello world", "read" => true, "url" => "http://example.com"} message_thread = Intercom::MessageThread.new(params) message_thread.to_hash.keys.sort.must_equal params.keys.map(&:to_s).sort - params.keys.each do | key| + params.keys.each do |key| message_thread.send(key).must_equal params[key] end end it "should do automatic unwrapping of the timestamp " do \ No newline at end of file