Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updating spec to reflect the config.editorUrlRegEx change.

  • Loading branch information...
commit e79705af2814aaac0aad655c218b2cc7296ed065 1 parent 3ce3acd
Jeremy Jackson authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/javascripts/mercury/page_editor_spec.js.coffee
6 spec/javascripts/mercury/page_editor_spec.js.coffee
View
@@ -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')
Please sign in to comment.
Something went wrong with that request. Please try again.