Commit 9d8c023a by Will Daly

Removed calls to Navigation.bind() and Calculator.bind()

that were causing phantomjs interpreter to fail
with undefined method error.
parent a777a9e6
...@@ -4,9 +4,6 @@ describe 'Calculator', -> ...@@ -4,9 +4,6 @@ describe 'Calculator', ->
@calculator = new Calculator @calculator = new Calculator
describe 'bind', -> describe 'bind', ->
beforeEach ->
Calculator.bind()
it 'bind the calculator button', -> it 'bind the calculator button', ->
expect($('.calc')).toHandleWith 'click', @calculator.toggle expect($('.calc')).toHandleWith 'click', @calculator.toggle
......
...@@ -32,11 +32,9 @@ describe 'Navigation', -> ...@@ -32,11 +32,9 @@ describe 'Navigation', ->
heightStyle: 'content' heightStyle: 'content'
it 'binds the accordionchange event', -> it 'binds the accordionchange event', ->
Navigation.bind()
expect($('#accordion')).toHandleWith 'accordionchange', @navigation.log expect($('#accordion')).toHandleWith 'accordionchange', @navigation.log
it 'bind the navigation toggle', -> it 'bind the navigation toggle', ->
Navigation.bind()
expect($('#open_close_accordion a')).toHandleWith 'click', @navigation.toggle expect($('#open_close_accordion a')).toHandleWith 'click', @navigation.toggle
describe 'when the #accordion does not exists', -> describe 'when the #accordion does not exists', ->
...@@ -45,7 +43,6 @@ describe 'Navigation', -> ...@@ -45,7 +43,6 @@ describe 'Navigation', ->
it 'does not activate the accordion', -> it 'does not activate the accordion', ->
spyOn $.fn, 'accordion' spyOn $.fn, 'accordion'
Navigation.bind()
expect($('#accordion').accordion).wasNotCalled() expect($('#accordion').accordion).wasNotCalled()
describe 'toggle', -> describe 'toggle', ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment