Module: Rambo
- Defined in:
- lib/cli.rb,
lib/rambo.rb,
lib/version.rb,
lib/rambo/rake/task.rb,
lib/rambo/rspec/examples.rb,
lib/rambo/raml_models/api.rb,
lib/rambo/rspec/spec_file.rb,
lib/rambo/raml_models/body.rb,
lib/rambo/rspec/helper_file.rb,
lib/rambo/document_generator.rb,
lib/rambo/raml_models/method.rb,
lib/rambo/raml_models/headers.rb,
lib/rambo/rspec/example_group.rb,
lib/rambo/raml_models/resource.rb,
lib/rambo/raml_models/response.rb,
lib/rambo/raml_models/security_scheme.rb
Defined Under Namespace
Modules: RSpec, Rake, RamlModels Classes: CLI, DocumentGenerator
Constant Summary collapse
- MAJOR =
'0'- MINOR =
'3'- PATCH =
'0'
Class Attribute Summary collapse
-
.file ⇒ Object
readonly
Returns the value of attribute file.
-
.options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Class Attribute Details
.file ⇒ Object (readonly)
Returns the value of attribute file.
8 9 10 |
# File 'lib/rambo.rb', line 8 def file @file end |
.options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/rambo.rb', line 8 def @options end |
Class Method Details
.generate_contract_tests!(file: nil, options: {}) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/rambo.rb', line 10 def generate_contract_tests!(file: nil, options: {}) @options = .merge() @options[:rails] = true unless @options.fetch(:rails, nil) == false @file = file || @options.delete(:raml) || raml_file DocumentGenerator.generate!(@file, @options) end |