Sha256: a6d29e07ce66241627e8402c2f714379d1dbca592477e881bea6032266d439f5

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 Bytes

Contents

require 'test_helper'

module BootstrapFeedbacker
  class RemarksControllerTest < ActionController::TestCase
    setup do
      @remark = bootstrap_feedbacker_remarks(:remark)
      @routes = Engine.routes
    end

    test "should create remark" do
      assert_difference('Remark.count') do
        post :create, remark: { content: @remark.content }, format: 'js'
      end
      assert_response 200
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bootstrap_feedbacker-0.3.0 test/controllers/bootstrap_feedbacker/remarks_controller_test.rb