Sha256: 3a64a8d2773921873ff02921ec582b18658b6e423e17253c04b6aecce3e9763c

Contents?: true

Size: 525 Bytes

Versions: 6

Compression:

Stored size: 525 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../test_helper.rb')

class SessionsControllerTest < ActionController::IntegrationTest

  def setup
    @controller = SessionsController.new
  end

  context "Watcher Middleware" do
    test "Identifying routes of actions that respond to more than one method" do
      get "/sessions/1/logout"
      delete "/sessions/1/logout"

      assert_watched_routes_include(:sessions, :logout, :get)
      assert_watched_routes_include(:sessions, :logout, :delete)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
route_dog-2.5.1 test/integration/sessions_controller_test.rb
route_dog-2.5.0 test/integration/sessions_controller_test.rb
route_dog-2.4.2 test/integration/sessions_controller_test.rb
route_dog-2.3.1 test/integration/sessions_controller_test.rb
route_dog-2.3.0 test/integration/sessions_controller_test.rb
route_dog-2.2.0 test/integration/sessions_controller_test.rb