1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/spec/c_spec_helper.rb
Georgy Angelov f24985c23c Add rspec matchers for Maybe and (Strict)?Equals
`expect(a).to eq_just b` <=> `a.IsJust && a.FromJust == b`
`expect(a).to be_successful` <=> `a.IsJust && a.FromJust`
`expect(a).to strict_eq b` <=> if a is Maybe: `a.IsJust && a.FromJust.StrictEquals(b)`; else `a.StrictEquals(b)`
`expect(a).to v8_eq b` <=> same as above but for `Equals` instead of `StrictEquals`
2015-08-01 20:21:36 +00:00

3 lines
107 B
Ruby

require 'v8/init'
Dir["#{File.dirname(__FILE__)}/support/*.rb"].each { |helper| require_relative helper }