Sha256: 2a4e34a300c969ef86d92c9b449bdd797fb492b9236a82f52e3cb6e42c0c51c7

Contents?: true

Size: 555 Bytes

Versions: 25

Compression:

Stored size: 555 Bytes

Contents

require 'test_helper'

module Errdo
  class ErrorsControllerTest < ActionController::TestCase

    include Devise::TestHelpers

    setup do
      @routes = Engine.routes
    end

    context "actions" do
      setup do
        @error = FactoryGirl.create(:error)
        @occ = FactoryGirl.create(:error_occurrence, error: @error)
      end

      context "update" do
        should "change the status" do
          put :update, id: @error.id, error: { status: "wontfix" }
          assert @error.reload.wontfix?
        end
      end
    end

  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
errdo-0.12.14 test/controllers/errors_controller_test.rb
errdo-0.12.13 test/controllers/errors_controller_test.rb
errdo-0.12.12 test/controllers/errors_controller_test.rb
errdo-0.12.11 test/controllers/errors_controller_test.rb
errdo-0.12.10 test/controllers/errors_controller_test.rb
errdo-0.12.9 test/controllers/errors_controller_test.rb
errdo-0.12.8 test/controllers/errors_controller_test.rb
errdo-0.12.7 test/controllers/errors_controller_test.rb
errdo-0.12.6 test/controllers/errors_controller_test.rb
errdo-0.12.5 test/controllers/errors_controller_test.rb
errdo-0.12.4 test/controllers/errors_controller_test.rb
errdo-0.12.3 test/controllers/errors_controller_test.rb
errdo-0.12.2 test/controllers/errors_controller_test.rb
errdo-0.12.1 test/controllers/errors_controller_test.rb
errdo-0.12.0 test/controllers/errors_controller_test.rb
errdo-0.11.6 test/controllers/errors_controller_test.rb
errdo-0.11.5 test/controllers/errors_controller_test.rb
errdo-0.11.4 test/controllers/errors_controller_test.rb
errdo-0.11.3 test/controllers/errors_controller_test.rb
errdo-0.11.2 test/controllers/errors_controller_test.rb