Sha256: 4d535da6831f879a3fb41130faf708721baabc54a8e1ab4216973aeafd596c9e

Contents?: true

Size: 570 Bytes

Versions: 14

Compression:

Stored size: 570 Bytes

Contents

require 'test_helper'

module PushType
  class ApiAuthenticationMethodsTest < ActiveSupport::TestCase

    subject { PushType::ApiController.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 { subject.methods.include?(:current_push_type_user).must_equal true }
    it { subject.methods.include?(:auth_token).must_equal true }
    it { before_filters.include?(:authenticate_user!).must_equal true }

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
push_type_auth-0.12.1 test/controllers/concerns/push_type/api_authentication_methods_test.rb
push_type_auth-0.12.0 test/controllers/concerns/push_type/api_authentication_methods_test.rb
push_type_auth-0.12.0.beta.1 test/controllers/concerns/push_type/api_authentication_methods_test.rb
push_type_auth-0.11.2 test/controllers/concerns/push_type/api_authentication_methods_test.rb
push_type_auth-0.11.1 test/controllers/concerns/push_type/api_authentication_methods_test.rb
push_type_auth-0.11.0.beta.2 test/controllers/concerns/push_type/api_authentication_methods_test.rb
push_type_auth-0.11.0.beta.1 test/controllers/concerns/push_type/api_authentication_methods_test.rb
push_type_auth-0.10.4 test/controllers/concerns/push_type/api_authentication_methods_test.rb
push_type_auth-0.10.3 test/controllers/concerns/push_type/api_authentication_methods_test.rb
push_type_auth-0.10.2 test/controllers/concerns/push_type/api_authentication_methods_test.rb
push_type_auth-0.10.1 test/controllers/concerns/push_type/api_authentication_methods_test.rb
push_type_auth-0.10.0 test/controllers/concerns/push_type/api_authentication_methods_test.rb
push_type_auth-0.10.0.beta.5 test/controllers/concerns/push_type/api_authentication_methods_test.rb
push_type_auth-0.10.0.beta.3 test/controllers/concerns/push_type/api_authentication_methods_test.rb