1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
Commit graph

6 commits

Author SHA1 Message Date
Georgy Angelov
654b808ac5 Use #around for creation of context for C examples
This fixes segmentation fault in the tests as extending the examples in a before block with override of `#instance_eval` seems to not work.

Also, the context wrap is now opt-in with a helper method, instead of opt-out and relying on `#described_class` (which has slightly different behavior in RSpec 3).

Tested on Ruby 2.1.5 and RSpec 2.99.2.
2015-03-15 18:27:19 +00:00
Charles Lowell
e5aef04dfc No need to pass argc from Ruby. 2012-06-12 13:00:10 -05:00
Charles Lowell
8976cb9fc7 Auto-lock, Auto-scope all specs, except where not. 2012-06-05 08:00:04 -05:00
Charles Lowell
276653f830 ensure that a value can be returned from a callback function. 2012-05-25 16:06:41 -05:00
Charles Lowell
687faa4865 add C::ContextHelper to wrap native test cases 2012-05-25 16:01:31 -05:00
Charles Lowell
c66e43e438 support for function callbacks 2012-05-21 12:23:42 -05:00