Sha256: 3520f1ca48f348a1278f69aa5e150df8711db7d63bee362a783cf06761de3f51

Contents?: true

Size: 310 Bytes

Versions: 13

Compression:

Stored size: 310 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe '.configure' do
  before do
    Grape.configure do |config|
      config.param_builder = 42
    end
  end

  after do
    Grape.config.reset
  end

  it 'is configured to the new value' do
    expect(Grape.config.param_builder).to eq 42
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
grape-1.6.2 spec/grape/config_spec.rb
grape-1.6.1 spec/grape/config_spec.rb
grape-1.6.0 spec/grape/config_spec.rb
grape-1.5.3 spec/grape/config_spec.rb
grape-1.5.2 spec/grape/config_spec.rb
grape-1.5.1 spec/grape/config_spec.rb
grape-1.5.0 spec/grape/config_spec.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/grape-1.4.0/spec/grape/config_spec.rb
grape-1.4.0 spec/grape/config_spec.rb
grape-1.3.3 spec/grape/config_spec.rb
grape-1.3.2 spec/grape/config_spec.rb
grape-1.3.1 spec/grape/config_spec.rb
grape-1.3.0 spec/grape/config_spec.rb