Sha256: 047c63160aeb956b1c64f873ec7b3c8a41d0240b6304679a18e35175a2680354

Contents?: true

Size: 403 Bytes

Versions: 16

Compression:

Stored size: 403 Bytes

Contents

require "test_helper"

module PushType
  describe AuthenticationMethods do

    subject { PushType::AdminController.new }
    let :before_filters do
      subject._process_action_callbacks.find_all { |x| x.kind == :before }.map(&:filter)
    end

    it { subject.methods.include?(:authenticate_user!).must_equal true }
    it { before_filters.include?(:authenticate_user!).must_equal true }

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
push_type_auth-0.5.1 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.5.0 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.5.0.alpha.5 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.5.0.alpha.4 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.5.0.alpha.3 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.5.0.alpha.2 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.5.0.alpha.1 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.4.0 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.4.0.beta.3 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.3.3 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.3.1 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.2.1 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.2.0 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.2.0.beta2 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.1.1 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.1.0 test/controllers/concerns/push_type/authentication_methods_test.rb