spec/support/stub_executor.rb in big_brother-0.4.1 vs spec/support/stub_executor.rb in big_brother-0.5.0
- old
+ new
@@ -13,6 +13,10 @@
def add_response(command, output, status)
@responses[command] ||= []
@responses[command].push [output, status]
end
+
+ def clear_commands!
+ @commands = []
+ end
end