We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39feb1d commit 31a0173Copy full SHA for 31a0173
.ruby-gemset
@@ -0,0 +1 @@
1
+grape-swagger-rails
spec/features/swagger_spec.rb
@@ -16,6 +16,13 @@
16
before do
17
@options = GrapeSwaggerRails.options.dup
18
end
19
+
20
+ it 'evaluates config options correctly' do
21
+ visit '/swagger'
22
+ page_options_json = page.evaluate_script("$('html').data('swagger-options')").to_json
23
+ expect(page_options_json).to eq(@options.marshal_dump.to_json)
24
+ end
25
26
context '#headers' do
27
28
GrapeSwaggerRails.options.headers['X-Test-Header'] = 'Test Value'
0 commit comments