spec/javascripts/mercury/toolbar_spec.js.coffee in mercury-rails-0.6.0 vs spec/javascripts/mercury/toolbar_spec.js.coffee in mercury-rails-0.7.0

- old
+ new

@@ -178,9 +178,17 @@ @toolbar = new Mercury.Toolbar({appendTo: '#test', visible: false}) it "returns 0", -> expect(@toolbar.height()).toEqual(0) + describe "when forced", -> + + beforeEach -> + @toolbar = new Mercury.Toolbar({appendTo: '#test', visible: false}) + + it "returns the element outerheight", -> + expect(@toolbar.height(true)).toEqual($('.mercury-toolbar-container').outerHeight()) + describe "#show", -> beforeEach -> spyOn(Mercury.Toolbar.prototype, 'buildButton').andCallFake(=> $('<div>'))