cirandas.net

ref: master

test/unit/chat_message_test.rb


1
2
3
4
5
6
7
8
9
require 'test_helper'

class ChatMessageTest < ActiveSupport::TestCase
  should 'create message' do
    assert_difference 'ChatMessage.count', 1 do
      ChatMessage.create!(:from => fast_create(Person), :to => fast_create(Person), :body => 'Hey! How are you?' )
    end
  end
end