Sha256: d205df7d134da15e29e83df5ebe44cdb4e7e4dd888c5f0837fa1c0016e1d395d
Contents?: true
Size: 758 Bytes
Versions: 4
Compression:
Stored size: 758 Bytes
Contents
require 'rspec/core' require 'rswag/specs/version' require 'rswag/specs/example_group_helpers' require 'rswag/specs/example_helpers' require 'rswag/specs/configuration' 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 def self.config @config ||= Configuration.new(RSpec.configuration) 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rswag-specs-1.2.0 | lib/rswag/specs.rb |
rswag-specs-1.1.0 | lib/rswag/specs.rb |
rswag-specs-1.0.3 | lib/rswag/specs.rb |
rswag-specs-1.0.2 | lib/rswag/specs.rb |