Sha256: 8d8d7e0aebdd209edddefa420f587ab465de0921d5152b31beb96925634e979a

Contents?: true

Size: 696 Bytes

Versions: 14

Compression:

Stored size: 696 Bytes

Contents

require 'controllers/subscriptions_api_controller_shared_examples'

describe ActivityNotification::SubscriptionsApiController, type: :controller do
  let(:test_target)        { create(:user) }
  let(:target_type)        { :users }
  let(:typed_target_param) { :user_id }
  let(:extra_params)       { {} }
  let(:valid_session)      {}

  it_behaves_like :subscriptions_api_controller

  describe "/api/v#{ActivityNotification::GEM_VERSION::MAJOR}", type: :request do
    let(:root_path)          { "/api/v#{ActivityNotification::GEM_VERSION::MAJOR}" }
    let(:test_target)        { create(:user) }
    let(:target_type)        { :users }

    it_behaves_like :subscriptions_api_request
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
activity_notification-2.3.3 spec/controllers/subscriptions_api_controller_spec.rb
activity_notification-2.3.2 spec/controllers/subscriptions_api_controller_spec.rb
activity_notification-2.3.1 spec/controllers/subscriptions_api_controller_spec.rb
activity_notification-2.3.0 spec/controllers/subscriptions_api_controller_spec.rb
activity_notification-2.2.4 spec/controllers/subscriptions_api_controller_spec.rb
activity_notification-2.2.3 spec/controllers/subscriptions_api_controller_spec.rb
activity_notification-2.2.2 spec/controllers/subscriptions_api_controller_spec.rb
activity_notification-2.2.1 spec/controllers/subscriptions_api_controller_spec.rb
activity_notification-2.2.0 spec/controllers/subscriptions_api_controller_spec.rb
activity_notification-2.1.4 spec/controllers/subscriptions_api_controller_spec.rb
activity_notification-2.1.3 spec/controllers/subscriptions_api_controller_spec.rb
activity_notification-2.1.2 spec/controllers/subscriptions_api_controller_spec.rb
activity_notification-2.1.1 spec/controllers/subscriptions_api_controller_spec.rb
activity_notification-2.1.0 spec/controllers/subscriptions_api_controller_spec.rb