Rename ExampleHelpers.config - appeared to be conflicting in Rails 4+

This commit is contained in:
richie
2016-10-14 09:55:55 -07:00
parent 63e0e53104
commit 312f68ae72
2 changed files with 8 additions and 6 deletions

View File

@@ -10,9 +10,9 @@ module Rswag
subject.extend ExampleHelpers
# Mock out some infrastructure
stub_const('Rails::VERSION::MAJOR', 3)
config = double('config')
allow(config).to receive(:get_swagger_doc).and_return(global_metadata)
allow(subject).to receive(:config).and_return(config)
rswag_config = double('rswag_config')
allow(rswag_config).to receive(:get_swagger_doc).and_return(global_metadata)
allow(subject).to receive(:rswag_config).and_return(rswag_config)
end
let(:api_metadata) do
{