Sha256: 0e11756f14baef234d0b6a1c3562fa5e0b5ba11f729c5743730552067a3f4d21

Contents?: true

Size: 624 Bytes

Versions: 3

Compression:

Stored size: 624 Bytes

Contents

require "test_helper"

module Authlogic
  module ControllerAdapters
    class AbstractAdapterTest < ActiveSupport::TestCase
      def test_controller
        controller = Class.new(MockController) do
          def controller.an_arbitrary_method
            "bar"
          end
        end.new
        adapter = Authlogic::ControllerAdapters::AbstractAdapter.new(controller)

        assert_equal controller, adapter.controller
        assert controller.params.equal?(adapter.params)
        assert adapter.respond_to?(:an_arbitrary_method)
        assert_equal "bar", adapter.an_arbitrary_method
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
authlogic-4.2.0 test/adapter_test.rb
authlogic-4.1.1 test/adapter_test.rb
authlogic-4.1.0 test/adapter_test.rb