File: config_spec.rb

package info (click to toggle)
ruby-grape 1.6.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,156 kB
  • sloc: ruby: 25,265; makefile: 7
file content (19 lines) | stat: -rw-r--r-- 310 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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