Sha256: 4b9e6b2b5a66d7f3df3f57efa07179c925401bc64c5380fe1384be31b0acfc85

Contents?: true

Size: 540 Bytes

Versions: 1

Compression:

Stored size: 540 Bytes

Contents

require 'test_helper'

module Bigmouth
  class ArticleTest < ActiveSupport::TestCase
    def setup
      @article = Article.new(title: "Bigmouth Strikes Again",
                             text: "Sweetness, sweetness I was only joking when I said I'd like to smash every tooth in your head",
                             user_id: 1)
    end

    test "should be valid" do
      assert @article.valid?
    end

    test "should be invalid when title is blank" do
      @article.title = ""
      assert_not @article.valid?
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bigmouth-0.0.2 test/models/bigmouth/article_test.rb