Sha256: 0f9b46283ec3fc5b712b309884f4a3989f81f5c4b2d4e1d3a7dbfb16996bedbf
Contents?: true
Size: 636 Bytes
Versions: 2
Compression:
Stored size: 636 Bytes
Contents
require 'rspec/core' require 'rswag/specs/version' require 'rswag/specs/example_group_helpers' require 'rswag/specs/example_helpers' require 'rswag/specs/railtie' if defined?(Rails::Railtie) module Rswag module Specs # Extend RSpec with a swagger-based DSL ::RSpec.configure do |c| c.add_setting :swagger_root c.add_setting :swagger_docs c.extend ExampleGroupHelpers, type: :request c.include ExampleHelpers, type: :request end # Support Rails 3+ and RSpec 2+ (sigh!) RAILS_VERSION = Rails::VERSION::MAJOR RSPEC_VERSION = RSpec::Core::Version::STRING.split('.').first.to_i end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rswag-specs-1.0.1 | lib/rswag/specs.rb |
rswag-specs-1.0.0 | lib/rswag/specs.rb |