spec/javascripts/mercury/modals/insertsnippet_spec.js.coffee in kiteditor-1.0.12 vs spec/javascripts/mercury/modals/insertsnippet_spec.js.coffee in kiteditor-1.0.13
- old
+ new
@@ -1,14 +1,15 @@
describe "Mercury.modalHandlers.insertSnippet", ->
+ template 'mercury/modals/insertsnippet.html'
+
beforeEach ->
- fixture.load('mercury/modals/insertsnippet.html')
Mercury.Snippet.all = []
Mercury.Snippet.load({
'snippet_0': {name: 'foo', options: {'first_name': "Jeremy", 'last_name': "Jackson"}},
})
@modal =
- element: $(fixture.el)
+ element: $('#test')
hide: ->
options: {snippetName: 'test'}
Mercury.modalHandlers.insertSnippet.call(@modal)
describe "submitting", ->