Guest User

Untitled

a guest
Jul 17th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. module RSpec
  2. module Core
  3. module Hooks
  4. def because(*args, &block)
  5. scope, options = scope_and_options_from(*args)
  6. hooks[:after][scope] << AfterHook.new(options, &block)
  7. end
  8. end
  9. end
  10. module Mocks
  11. module Methods
  12. alias_method :should_have_received, :should_receive
  13. alias_method :should_not_have_received, :should_not_receive
  14. end
  15. end
  16. end
  17.  
  18. alias :context :describe
Add Comment
Please, Sign In to add comment