Sha256: 49616a3b6c14a4a066696649daa6ad70dc6845d3331fe7a26929dca9e63b04d3

Contents?: true

Size: 495 Bytes

Versions: 2

Compression:

Stored size: 495 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'ripper-plus'

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

RSpec::Matchers.define :transform_to do |output|
  match do |input|
    RipperPlus::Transformer.transform(input) == output
  end
end

RSpec.configure do |config|
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ripper-plus-1.0.1 spec/spec_helper.rb
ripper-plus-1.0.0 spec/spec_helper.rb