spec/spec_helper.rb in opal-0.3.39 vs spec/spec_helper.rb in opal-0.3.40
- old
+ new
@@ -2,10 +2,11 @@
require 'opal-parser'
require 'opal-spec'
# stdlib
require 'opal/date'
+require 'opal/enumerator'
module Kernel
def opal_eval(str)
code = Opal::Parser.new.parse str
`eval(code)`
@@ -21,7 +22,11 @@
# 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
+
+ def enumerator_class
+ Enumerator
end
end