spec/spec_helper.rb in opal-jquery-0.0.5 vs spec/spec_helper.rb in opal-jquery-0.0.6
- old
+ new
@@ -1,10 +1,10 @@
require 'jquery'
require 'opal-spec'
require 'opal-jquery'
-module OpalSpec
+module Spec
class ExampleGroup
# Add some html code to the body tag ready for testing. This will
# be added before each test, then removed after each test. It is
# convenient for adding html setup quickly. The code is wrapped
@@ -22,15 +22,13 @@
#
# @param [String] html_string html content to add
def html(html_string='')
html = '<div id="opal-jquery-test-div">' + html_string + '</div>'
before do
- @__html = Document.parse(html)
- @__html.append_to_body
+ @_spec_html = Document.parse(html)
+ @_spec_html.append_to_body
end
- after { @__html.remove }
+ after { @_spec_html.remove }
end
end
end
-
-Opal::Spec::Runner.autorun