Sha256: a9695132a44032b4118178e6bdfd04938f6c025a5e98a58c8dd0f670d5b10fcf

Contents?: true

Size: 542 Bytes

Versions: 1

Compression:

Stored size: 542 Bytes

Contents

require 'test_helper'

module Bigmouth
  class ArticlesControllerTest < ActionController::TestCase
    setup do
      @routes = Bigmouth::Engine.routes
      @article = bigmouth_articles(:bigmouth_Strikes_again)
      @user = users(:morrissey)
    end

    test "should get index" do
      get :index
      assert_response :success
      assert_not_nil assigns(:articles)
      assert_template "bigmouth/articles/index"
    end

    test "should show article" do
      get :show, id: @article
      assert_response :success
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bigmouth-0.0.2 test/controllers/bigmouth/articles_controller_test.rb