test/epilicious_test.rb in epilicious-0.3.4 vs test/epilicious_test.rb in epilicious-0.3.5
- old
+ new
@@ -1,16 +1,32 @@
require 'test_helper'
+
+describe Epilicious do
+ let(:cookbook) { Epilicious::CookBook }
+
+ context ".recipes" do
+ it "must call CookBook.recipes with the right url" do
+ cookbook.expects(:recipes).with("/test")
+ Epilicious.recipes("http://test.com/test")
+ end
+
+ it "must call cookbook with the default url" do
+ cookbook.expects(:recipes).with("/recipesmenus/whatsnew/recipes")
+ Epilicious.recipes
+ end
+ end
+end