Sha256: fbacb07732ea27486946e0f5305c6627cba520c64028a19f980ad64635468dd7

Contents?: true

Size: 268 Bytes

Versions: 12

Compression:

Stored size: 268 Bytes

Contents

require 'test_controller'

class TagsControllerTest < TestController
  tests Admin::TagsController

  test 'can create a new tag' do
    log_in!
    post :create, post_id: Post.published.last, tag: {name: 'A new tag'}
    assert_redirected_to '/admin/tags'
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ecrire-0.31.2 test/editor/controllers/tags_controller_test.rb
ecrire-0.31.1 test/editor/controllers/tags_controller_test.rb
ecrire-0.31.0 test/editor/controllers/tags_controller_test.rb
ecrire-0.30.3 test/editor/controllers/tags_controller_test.rb
ecrire-0.30.2 test/editor/controllers/tags_controller_test.rb
ecrire-0.30.1 test/editor/controllers/tags_controller_test.rb
ecrire-0.30.0 test/editor/controllers/tags_controller_test.rb
ecrire-0.29.0 test/editor/controllers/tags_controller_test.rb
ecrire-0.28.3 test/editor/controllers/tags_controller_test.rb
ecrire-0.28.2 test/editor/controllers/tags_controller_test.rb
ecrire-0.28.1 test/editor/controllers/tags_controller_test.rb
ecrire-0.28.0 test/editor/controllers/tags_controller_test.rb