Sha256: 9598ce43be014edb351bd3eb1e73dd3540bc3133aafaa6d4cbb358488f14a1e7

Contents?: true

Size: 308 Bytes

Versions: 3

Compression:

Stored size: 308 Bytes

Contents

require 'test_controller'
require 'editor/test_helper'

class TagsControllerTest < TestController
  tests Admin::Posts::TagsController

  test 'can create a new tag' do
    log_in!
    post :create, post_id: Post.published.last, tag: {name: 'A new tag'}, format: :js
    assert_response :success
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ecrire-0.25.2 test/editor/controllers/tags_controller_test.rb
ecrire-0.25.1 test/editor/controllers/tags_controller_test.rb
ecrire-0.25.0 test/editor/controllers/tags_controller_test.rb