Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module RSpec
- module Core
- module Hooks
- def because(*args, &block)
- scope, options = scope_and_options_from(*args)
- hooks[:after][scope] << AfterHook.new(options, &block)
- end
- end
- end
- module Mocks
- module Methods
- alias_method :should_have_received, :should_receive
- alias_method :should_not_have_received, :should_not_receive
- end
- end
- end
- alias :context :describe
Add Comment
Please, Sign In to add comment