Opal + RSpec = ♥️
Drop support for anything below Opal v1.6
Update to the latest RSpec versions
Vendor-in diff-lcs
Rework the async logic to use the await
feature of Opal
# await: *await*
magic comment (this will cause any call to a method containing an await
word to be compiled with an await
ES8 keyword)let
and subject
that return a promise (ie. are async) must be referenced with an .await
methodaround
blocks, you must call example.run_await
instead of just example.run
PromiseV2
is supported (PromiseV1
may work, but you should migrate your application to use PromiseV2
nevertheless, in Opal 2.0 it will become the default)Drop a requirement of opal-sprockets
require "opal/rspec/sprockets"
Drop support for anything below Opal v1.6.0.alpha1
Update to the latest RSpec versions
Vendor-in diff-lcs
Rework the async logic to use the await
feature of Opal
# await: *await*
magic comment (this will cause any call to a method containing an await
word to be compiled with an await
ES8 keyword)let
and subject
that return a promise (ie. are async) must be referenced with an .await
methodaround
blocks, you must call example.run_await
instead of just example.run
PromiseV2
is supported (PromiseV1
may work, but you should migrate your application to use PromiseV2
nevertheless, in Opal 2.0 it will become the default)Support for Opal v1.x
Fix some x-srting semicolon warnings
Fix forwarding the exit code to the rake task
opal-rspec --init
Drop support for the legacy async syntax
Complete internal overhaul
Support for Opal v0.11
Fixed compatibility with Rake 12
Open up to opal 0.11 (not officially supported yet)
Kernel#caller
monkey patch so test file/line metadata is only available if supplied via test metadata or for failures. Should improve performance since an exception isn't thrown for every test to gather the data