Module: Rswag::Specs

Defined in:
lib/rswag/specs.rb,
lib/rswag/specs/railtie.rb,
lib/rswag/specs/configuration.rb,
lib/rswag/specs/example_helpers.rb,
lib/rswag/specs/extended_schema.rb,
lib/rswag/specs/request_factory.rb,
lib/rswag/specs/swagger_formatter.rb,
lib/rswag/specs/response_validator.rb,
lib/rswag/specs/example_group_helpers.rb,
lib/generators/rswag/specs/install/install_generator.rb

Defined Under Namespace

Modules: ExampleGroupHelpers, ExampleHelpers Classes: Configuration, ConfigurationError, ExtendedSchema, InstallGenerator, MissingParameterError, Railtie, RequestFactory, ResponseValidator, SwaggerFormatter, UnexpectedResponse

Constant Summary collapse

RAILS_VERSION =

Support Rails 3+ and RSpec 2+ (sigh!)

Rails::VERSION::MAJOR
RSPEC_VERSION =
RSpec::Core::Version::STRING.split('.').first.to_i

Class Method Summary collapse

Class Method Details

.configObject



32
33
34
# File 'lib/rswag/specs.rb', line 32

def self.config
  @config ||= Configuration.new(RSpec.configuration)
end

.deprecatorObject



36
37
38
# File 'lib/rswag/specs.rb', line 36

def self.deprecator
  @deprecator ||= ActiveSupport::Deprecation.new('3.0', 'rswag-specs')
end