Sha256: 831c741fe70c175b5d0ff45d10cf892fc9dc82f4a8edf14ac8aeddd60050eb6e
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
require 'spec_helper' describe Swaggard, '.get_doc' do let(:controller_path) { File.expand_path('../../fixtures/dummy/app/controllers/pets_controller.rb', __FILE__) } let(:api_json) { File.read(File.expand_path('../../fixtures/api.json', __FILE__)) } it 'generates swagger json' do Swaggard.configure do |config| config.controllers_path = controller_path config.routes = Dummy::Application.routes.routes end swagger_json = JSON.dump(Swaggard.get_doc) expect(swagger_json).to eq(api_json) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
swaggard-0.0.4 | spec/integration/swaggard_spec.rb |