mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 15:22:56 +00:00
More useful error messages in rswag-specs
This commit is contained in:
@@ -2,6 +2,7 @@ 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
|
||||
@@ -15,6 +16,10 @@ module Rswag
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user