Skip to content

Commit

Permalink
remove silly test, fix results
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathew Allen committed Oct 3, 2016
1 parent 9c72ece commit 34a7bb6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions test/javascripts/turbolinks_test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ describe 'Turbolinks', ->

beforeEach ->
testDocument = setupIframe() unless iframe
Turbolinks.document(testDocument)
sandbox = sinon.sandbox.create()
pushStateStub = sandbox.stub(Turbolinks, 'pushState')
replaceStateStub = sandbox.stub(Turbolinks, 'replaceState')
Expand All @@ -107,15 +108,6 @@ describe 'Turbolinks', ->
it 'is defined', ->
assert(Turbolinks)

describe '#document', ->
afterEach ->
Turbolinks.document(testDocument)

it 'assigning a document', ->
dummy = stub()
Turbolinks.document(dummy)
assert.equal(Turbolinks.document(), dummy)

describe '#visit', ->
it 'subsequent visits abort previous XHRs', (done) ->
pageReceive = stub()
Expand Down

0 comments on commit 34a7bb6

Please sign in to comment.