spec/element/animations_spec.rb in opal-jquery-0.0.1 vs spec/element/animations_spec.rb in opal-jquery-0.0.2

- old
+ new

@@ -1,18 +1,10 @@ -describe "Element animation methods" do - before do - @div = Document.parse <<-HTML - <div id="animate-foo"></div> - HTML +require "spec_helper" - @div.append_to_body - - Document.id("animate-foo").css("width", "0px") - end - - after do - @div.remove - end +describe "Element animation methods" do + html <<-HTML + <div id="animate-foo"></div> + HTML describe "#animate" do ### HACKY # jQUery's animate method doesn't *always* finish on time # so the values are being compared using greater than