+ + Instance double over double + +
+ +Instance double ensures the object responds to methods being called, which is not true for double.
+ +The above test will fail with the following message since the name
method really doesn't exist.
diff --git a/_config.yml b/_config.yml
index f07fba6..663fd3d 100644
--- a/_config.yml
+++ b/_config.yml
@@ -33,6 +33,9 @@ nav_external_links:
- title: Expect vs should
url: "#expect-vs-should"
hide_icon: true
+ - title: Instance double over double
+ url: "#instance-double-over-double"
+ hide_icon: true
- title: Factories, not fixtures
url: "#factories-not-fixtures"
hide_icon: true
diff --git a/_includes/instance_double_over_double.html b/_includes/instance_double_over_double.html
new file mode 100644
index 0000000..7c041ee
--- /dev/null
+++ b/_includes/instance_double_over_double.html
@@ -0,0 +1,45 @@
+ Instance double ensures the object responds to methods being called, which is not true for double. The above test will fail with the following message since the
+
+ Instance double over double
+
+
+
+ name
method really doesn't exist.