Skip to content

Commit

Permalink
failing spec for fetching Recipes collection
Browse files Browse the repository at this point in the history
  • Loading branch information
dougalcorn authored and webdev committed Nov 8, 2011
1 parent b738dea commit 5dfe401
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/javascripts/collections/recipes_spec.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
describe "Recipes", ->
beforeEach ->
@recipes = new Cookbook.Recipes()

describe "fetching", ->
beforeEach ->
@recipes.fetch()
@request = mostRecentAjaxRequest()
it "fetches from the recipe from the backend", ->
expect(@request).toRequest
method: "GET"
url: "/recipes"

0 comments on commit 5dfe401

Please sign in to comment.