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