Sha256: 01835624b075694fa718419844dc7a5d8ab99cbb6e4d90cd2ccdb5e7d5dec449
Contents?: true
Size: 706 Bytes
Versions: 2
Compression:
Stored size: 706 Bytes
Contents
require 'rack/test' require 'cucumber' require 'liquid' require 'lookout/rack/test' require 'lookout/rack/test/cucumber/transforms' require 'lookout/rack/test/cucumber/general_steps' require 'lookout/rack/test/cucumber/before' require 'lookout/rack/test/cucumber/server' module Lookout::Rack::Test module Cucumber include Lookout::Rack::Test::Cucumber::Server def render_string(buffer, opts={}) ::Liquid::Template.parse(buffer).render(template_vars.merge(opts)) end def template_vars @template_vars ||= {} end def current_locale I18n.locale = ENV['CUCUMBER_LOCALE'] || 'en' end end end World(Rack::Test::Methods) World(Lookout::Rack::Test::Cucumber)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lookout-rack-test-3.0.0 | lib/lookout/rack/test/cucumber.rb |
lookout-rack-test-2.3.1 | lib/lookout/rack/test/cucumber.rb |