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 =
'7'- PATCH =
'1'
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 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: {}) = .merge() [:framework] = :rails if .fetch(:framework, nil).nil? @file = file || .delete(:raml) || raml_file DocumentGenerator.generate!(@file, ) end |
.version ⇒ Object
6 7 8 |
# File 'lib/version.rb', line 6 def self.version [Rambo::MAJOR, Rambo::MINOR, Rambo::PATCH].join('.') end |