Class: RSpec::Core::ExampleGroup
- Inherits:
-
Object
- Object
- RSpec::Core::ExampleGroup
- Defined in:
- lib/rspec_execute.rb,
lib/rspec_expects.rb
Class Method Summary collapse
Class Method Details
.execute(&execute_block) ⇒ Object
21 22 23 24 25 |
# File 'lib/rspec_execute.rb', line 21 def self.execute(&execute_block) before do @execute_block = execute_block end end |
.expects(name = nil, &expects_block) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/rspec_expects.rb', line 4 def self.expects(name = nil, &expects_block) describe nil do before do instance_exec(&expects_block) end it "should meet expectation #{name}" do # empty body end end end |