Module: AlwaysExecute::ShouldaExpects
- Included in:
- Shoulda::Context, Shoulda::Context::Context
- Defined in:
- lib/always_execute/shoulda_expects.rb
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/always_execute/shoulda_expects.rb', line 3 def self.included(klass) klass.class_eval do def expects(name = nil, &expects_block) context nil do setup do expects_block.bind(self).call end should "meet expectation #{name}" do # empty body end end end end end |