Sha256: d4326ce5f20e3552947da0f867e570a4a4e8579281db4a6ecdc8e9d7b0e5f6cd

Contents?: true

Size: 276 Bytes

Versions: 7

Compression:

Stored size: 276 Bytes

Contents

# frozen_string_literal: true

module ControllerTestHelpers
  def build_params(hash)
    if Rails.version.starts_with?('4')
      hash
    else
      { params: hash }
    end
  end
end

RSpec.configure do |config|
  config.include ControllerTestHelpers, type: :controller
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
devise_g5_authenticatable-1.0.3 spec/support/controller_test_helpers.rb
devise_g5_authenticatable-1.0.2.rc.3 spec/support/controller_test_helpers.rb
devise_g5_authenticatable-1.0.2.rc.2 spec/support/controller_test_helpers.rb
devise_g5_authenticatable-1.0.2.rc.1 spec/support/controller_test_helpers.rb
devise_g5_authenticatable-1.0.1.rc.1 spec/support/controller_test_helpers.rb
devise_g5_authenticatable-1.0.0 spec/support/controller_test_helpers.rb
devise_g5_authenticatable-1.0.0.pre.1 spec/support/controller_test_helpers.rb