Sha256: a1850e24ec55a2d39c4c317b786db33f00de4192d77fbc138d71c135a733bf3b
Contents?: true
Size: 550 Bytes
Versions: 2
Compression:
Stored size: 550 Bytes
Contents
$:.unshift(File.join(File.dirname(__FILE__), "../../lib")) ENV['RACK_ENV'] = 'test' require "wally" require "fileutils" require "capybara/cucumber" require "rspec" require "fakefs/spec_helpers" Capybara.app = Sinatra::Application FEATURE_PATH = File.join(File.dirname(__FILE__), "../../application-features") Before do FileUtils.mkdir_p(FEATURE_PATH) end After do FileUtils.rm_rf(FEATURE_PATH) end def create_feature_file(file_name, contents) File.open(File.join(FEATURE_PATH, file_name), "w") do |file| file.write(contents) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wally-0.0.2 | features/support/env.rb |
wally-0.0.1 | features/support/env.rb |