       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)
+      Then  -> keysShouldBeEqualIn(@writtenManifest, @expectedManifest)
 
   context "an empty manifest", ->
 


beforeEach -> mkdir @workspacePath = "spec/tmp/public/assets"
afterEach  -> clear "spec/tmp/"

describe "rails_asset_digest", ->


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

  describe "writes contents of fingerprinted files properly", ->

