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.11.1 test/controllers/errors_controller_test.rb
errdo-0.11.0 test/controllers/errors_controller_test.rb
errdo-0.10.0 test/controllers/errors_controller_test.rb
errdo-0.9.1 test/controllers/errors_controller_test.rb
errdo-0.9.0 test/controllers/errors_controller_test.rb