Class: Bogus::RSpecSyntax

Inherits:
Object
  • Object
show all
Extended by:
Takes, Forwardable
Defined in:
lib/bogus/rspec/syntax.rb

Instance Method Summary collapse

Methods included from Takes

takes

Instance Method Details

#after_suite(&block) ⇒ Object



17
18
19
20
21
# File 'lib/bogus/rspec/syntax.rb', line 17

def after_suite(&block)
  RSpec.configure do |config|
    config.after(:suite, &block)
  end
end

#described_class=(value) ⇒ Object



10
11
12
13
14
15
# File 'lib/bogus/rspec/syntax.rb', line 10

def described_class=(value)
  # for new RSpec (> 3.0)
  context.[:described_class] = value
  # for old RSpec (< 3.0)
  context.example.[:example_group][:described_class] = value
end