Permalink
Browse files

updating spec to reflect the config.editorUrlRegEx change.

  • Loading branch information...
1 parent 3ce3acd commit e79705af2814aaac0aad655c218b2cc7296ed065 @jejacks0n committed Feb 8, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/javascripts/mercury/page_editor_spec.js.coffee
View
6 spec/javascripts/mercury/page_editor_spec.js.coffee
@@ -531,10 +531,10 @@ describe "Mercury.PageEditor", ->
expect(@pageEditor.iframeSrc('http://foo.com/editor/path')).toEqual('http://foo.com/path')
it "uses the configured url regex to remove the editor", ->
- original = Mercury.editorUrlRegEx
- Mercury.editorUrlRegEx = /([http|https]:\/\/[^\/]*)\/(.*)\/edit\/?/i
+ original = Mercury.config.editorUrlRegEx
+ Mercury.config.editorUrlRegEx = /([http|https]:\/\/[^\/]*)\/(.*)\/edit\/?/i
expect(@pageEditor.iframeSrc('http://foo.com/path/edit')).toEqual('http://foo.com/path')
- Mercury.editorUrlRegEx = original
+ Mercury.config.editorUrlRegEx = original
it "adds query params", ->
expect(@pageEditor.iframeSrc('http://foo.com/editor/path', true)).toEqual('http://foo.com/path?mercury_frame=true')

0 comments on commit e79705a

Please sign in to comment.