Sha256: da9ab7a6377d10f1a4abd49be722a6cf89c707ecfd92b9265716c801c0b2ad6d

Contents?: true

Size: 718 Bytes

Versions: 2

Compression:

Stored size: 718 Bytes

Contents

require 'active_support'
require 'pickle/adapter'
require 'pickle/config'
require 'pickle/parser'
require 'pickle/parser/with_session'
require 'pickle/session'
require 'pickle/injector'

# make the parser aware of models in the session (for fields refering to models)
Pickle::Parser.send :include, Pickle::Parser::WithSession

# inject the pickle session into integration session if we have one (TODO: inject into merb etc?)
if defined?(ActionController::Integration::Session)
  Pickle::Injector.inject Pickle::Session, :into => ActionController::Integration::Session
end

# shortcuts for useful regexps when defining pickle steps
CaptureModel = Pickle.parser.capture_model
CaptureFields = Pickle.parser.capture_fields

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ianwhite-pickle-0.1.2 lib/pickle.rb
ianwhite-pickle-0.1.3 lib/pickle.rb