bin/console in mocktail-0.0.3 vs bin/console in mocktail-0.0.4
- old
+ new
@@ -54,8 +54,28 @@
@bar.pass(@glass, to: customer)
end
end
end
-# (If you use this, don't forget to add pry to your Gemfile!)
+class IceTray
+ def fill(water_type, amount)
+ end
+end
+
+class Shop
+ def self.open!(bar_id)
+ end
+
+ def self.close!(bar_id)
+ end
+end
+
+Mocktail.replace(Shop)
+
+stubs { |m| Shop.open!(m.numeric) }.with { :a_bar }
+
+Shop.open!(42)
+
+Shop.close!(42)
+
require "pry"
Pry.start