Sha256: 53ac7d0be4a972afb3e76b8425e7634b1a5cc740af3526c06ec2557de7b75987

Contents?: true

Size: 546 Bytes

Versions: 11

Compression:

Stored size: 546 Bytes

Contents

require 'test_helper'

module PagesCms
  class Admin::ArticlesControllerTest < ActionController::TestCase

    setup do
      @routes = Engine.routes
      session[:current_account] = pages_cms_accounts(:one).id
    end

    test 'should get index' do
      get :index
      assert_response :success
    end

    test 'article create' do
      article = { title: 'something', content: 'something', tags: 'something', draft: true }
      assert_difference 'Article.count', +1 do
        post :create, article: article
      end
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pages_cms-2.4.2 test/functional/pages_cms/admin/articles_controller_test.rb
pages_cms-2.3.2 test/functional/pages_cms/admin/articles_controller_test.rb
pages_cms-2.3.1 test/functional/pages_cms/admin/articles_controller_test.rb
pages_cms-2.3.0 test/functional/pages_cms/admin/articles_controller_test.rb
pages_cms-2.2.3 test/functional/pages_cms/admin/articles_controller_test.rb
pages_cms-2.2.2 test/functional/pages_cms/admin/articles_controller_test.rb
pages_cms-2.2.1 test/functional/pages_cms/admin/articles_controller_test.rb
pages_cms-2.1.1 test/functional/pages_cms/admin/articles_controller_test.rb
pages_cms-2.1.0 test/functional/pages_cms/admin/articles_controller_test.rb
pages_cms-2.0.1 test/functional/pages_cms/admin/articles_controller_test.rb
pages_cms-2.0.0 test/functional/pages_cms/admin/articles_controller_test.rb