Module: Vigia
- Defined in:
- lib/vigia.rb,
lib/vigia/url.rb,
lib/vigia/hooks.rb,
lib/vigia/rspec.rb,
lib/vigia/config.rb,
lib/vigia/adapter.rb,
lib/vigia/version.rb,
lib/vigia/formatter.rb,
lib/vigia/parameters.rb,
lib/vigia/sail/group.rb,
lib/vigia/sail/context.rb,
lib/vigia/sail/example.rb,
lib/vigia/adapters/raml.rb,
lib/vigia/sail/rspec_object.rb,
lib/vigia/adapters/blueprint.rb,
lib/vigia/http_client/options.rb,
lib/vigia/sail/group_instance.rb,
lib/vigia/http_client/requests.rb,
lib/vigia/sail/examples/default.rb,
lib/vigia/http_client/rest_client.rb
Defined Under Namespace
Modules: Adapters, Hooks, HttpClient, Sail
Classes: Adapter, Config, Formatter, Parameters, Rspec, Url
Constant Summary
collapse
- VERSION =
"0.2.4"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
32
33
34
|
# File 'lib/vigia.rb', line 32
def config
@config
end
|
Class Method Details
34
35
36
37
38
39
40
|
# File 'lib/vigia.rb', line 34
def configure
reset!
@config = Vigia::Config.new.tap do |_config|
yield _config
load_default_examples if _config.load_default_examples
end
end
|
.rspec! ⇒ Object
46
47
48
49
|
# File 'lib/vigia.rb', line 46
def rspec!
ensure_config
Vigia::Rspec.new.run!
end
|
.spec_folder ⇒ Object
42
43
44
|
# File 'lib/vigia.rb', line 42
def spec_folder
File.join(__dir__, 'vigia', 'spec')
end
|