Sha256: ad206e614f56c91ae90c4a79052e6e2cbb09e0c9262243b2801af2e1f3422ea3
Contents?: true
Size: 720 Bytes
Versions: 14
Compression:
Stored size: 720 Bytes
Contents
$:.unshift(File.join(File.dirname(__FILE__), "../lib")) ENV['RACK_ENV'] = 'test' require "rack/test" require "fakefs/spec_helpers" require "fileutils" require "wally" before do ARGV.clear ARGV << "application-features" end RSpec.configure do |config| config.after :each do Wally::Project.delete_all end end def project name project = Wally::Project.first(:name => name) unless project project = Wally::Project.create(:name => name) end project end def create_feature project_name, path, content project = project(project_name) feature = Wally::Feature.new({ :path => path, :gherkin => Wally::ParsesFeatures.new.parse(content) }) project.features << feature project.save end
Version data entries
14 entries across 14 versions & 1 rubygems