spec/spec_helper.rb in opal-0.3.37 vs spec/spec_helper.rb in opal-0.3.38
- old
+ new
@@ -1,8 +1,8 @@
-#= require opal
-#= require opal-parser
-#= require opal-spec
+require 'opal'
+require 'opal-parser'
+require 'opal-spec'
module Kernel
def opal_eval(str)
code = Opal::Parser.new.parse str
`eval(code)`
@@ -13,8 +13,12 @@
end
def opal_eval_compiled(javascript)
`eval(javascript)`
end
-end
-OpalSpec::Runner.autorun
+ # Used for splitting specific ruby version tests. For now we allow all test
+ # groups to run (as opal isnt really a specific ruby version as such?)
+ def ruby_version_is(version, &block)
+ block.call
+ end
+end