Sha256: d491c2e68d917116da6903400409aa42b19e254dbf17ac80338705d2f0031976

Contents?: true

Size: 528 Bytes

Versions: 1

Compression:

Stored size: 528 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, :delete)
      assert_watched_routes_include(:sessions, :logout, :delete)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
route_dog-2.0.1 test/integration/sessions_controller.rb