Sha256: a3b5bafa6fa5e886a8d8387aac2f966b5dd59d1b98d480a249b091415183b1b1
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
#= require_tree ../fixtures #= require ../../../vendor/assets/javascripts/testing/sinon-1.4.2 # FakeHost.respond() to complete request beforeEach -> localStorage.clear() window.FakeHost = sinon.fakeServer.create(); # window.FakeHost.respondWith("GET", Dashboard.Routes.widget_search_path(), [200, { "Content-Type": "application/json" }, JSON.stringify( Fixtures.search_results )] ) # window.FakeHost.respondWith("GET", new RegExp(Dashboard.Routes.widget_search_path("[\\d]+$")), [200, { "Content-Type": "application/json" }, JSON.stringify( Fixtures.search_results )] ) afterEach -> window.FakeHost.restore()
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-backbone-generator-0.0.3 | lib/generators/backbone/setup_generator/templates/spec/javascripts/helpers/fake_host.coffee |