Module: Foodtaster::RSpec
- Defined in:
- lib/foodtaster/rspec.rb,
lib/foodtaster/rspec/dsl_methods.rb,
lib/foodtaster/rspec/example_methods.rb,
lib/foodtaster/rspec/matchers/file_matcher.rb,
lib/foodtaster/rspec/matchers/user_matcher.rb
Defined Under Namespace
Modules: DslMethods, ExampleMethods, Matchers
Class Method Summary collapse
Class Method Details
.configure ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/foodtaster/rspec.rb', line 6 def self.configure ::RSpec::configure do |config| config.include Foodtaster::RSpec::ExampleMethods config.extend Foodtaster::RSpec::DslMethods config.before(:suite) do Foodtaster::RSpecRun.current.start end config.after(:suite) do Foodtaster::RSpecRun.current.stop end end end |