Sha256: 69fd03731488b0bc68f9755c998fb11c7dc3e7ba79f652924918b94d2636baef

Contents?: true

Size: 427 Bytes

Versions: 37

Compression:

Stored size: 427 Bytes

Contents

require 'test_helper'

module PushType
  class AuthenticationMethodsTest < ActiveSupport::TestCase

    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

37 entries across 37 versions & 1 rubygems

Version Path
push_type_auth-0.12.1 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.12.0 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.12.0.beta.1 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.11.2 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.11.1 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.11.0.beta.2 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.11.0.beta.1 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.10.4 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.10.3 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.10.2 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.10.1 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.10.0 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.10.0.beta.5 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.10.0.beta.3 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.9.5 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.9.3 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.9.2 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.9.1 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.9.0 test/controllers/concerns/push_type/authentication_methods_test.rb
push_type_auth-0.9.0.beta.4 test/controllers/concerns/push_type/authentication_methods_test.rb