conversation_test.rb 332 B

12345678910111213141516
  1. require 'test_helper'
  2. class ConversationTest < ActiveSupport::TestCase
  3. def setup
  4. @conversation = Conversation.new(name: "Conversation")
  5. end
  6. test "should be valid" do
  7. assert @conversation.valid?
  8. end
  9. test "name should be present" do
  10. @conversation.name = " "
  11. assert_not @conversation.valid?
  12. end
  13. end