Sha256: 2e8b241a086a7f9a0df05be29d26528240e0cadb3cec42a6f203cd9bb3e6b7a4

Contents?: true

Size: 279 Bytes

Versions: 5

Compression:

Stored size: 279 Bytes

Contents

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

5 entries across 5 versions & 2 rubygems

Version Path
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/grape-1.2.5/spec/grape/config_spec.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/grape-1.2.5/spec/grape/config_spec.rb
grape-1.2.5 spec/grape/config_spec.rb
grape-1.2.4 spec/grape/config_spec.rb
grape-1.2.3 spec/grape/config_spec.rb