       Given -> write("#{@workspacePath}/manifest.json", JSON.stringify(@existingManifest))
       Given (done) -> runGruntTask("rails_asset_digest", @config, done)
       When  -> @writtenManifest = read("#{@workspacePath}/manifest.json")
-      Then  -> expect(JSON.parse(@writtenManifest)).toEqual(@expectedManifest)
 
   describe "writes contents of fingerprinted files properly", ->
 

      Given -> write("#{@workspacePath}/manifest.json", JSON.stringify(@existingManifest))
      Given (done) -> runGruntTask("rails_asset_digest", @config, done)
      When  -> @writtenManifest = read("#{@workspacePath}/manifest.json")
      Then  -> expect(JSON.parse(@writtenManifest)).toEqual(@expectedManifest)

  context "a manifest with stale entries from a previous run of the grunt task", ->


      Given -> write("#{@workspacePath}/manifest.json", JSON.stringify(@existingManifest))
      Given (done) -> runGruntTask("rails_asset_digest", @config, done)
      When  -> @writtenManifest = read("#{@workspacePath}/manifest.json")
      Then  -> keysShouldBeEqualIn(@writtenManifest, @expectedManifest)

    describe "normalizes the asset path by adding a trailing slash", ->

