Sha256: 890d3ee71029ee32a474b6729962cee552a0558166941e5fbdf4d602ab732d7f
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
extend_class = defined?(RSpec) ? RSpec::Core::Configuration : Spec::Runner::Configuration extend_class.class_eval do # Enables blueprints in rspec. Is automatically added if <tt>Spec</tt> is defined at loading time or <tt>script/spec</tt> # is used. You might need to require it manually in certain case (eg. running specs from metrics). # Accepts options hash. For supported options please check Blueprints.load. def enable_blueprints(options = {}) Blueprints.load(options) include(Blueprints::Helper) before do Blueprints.setup(self) end after do Blueprints.teardown end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blueprints-0.6.2 | lib/blueprints/extensions/rspec.rb |