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

Version Path
wally-0.0.47 spec/spec_helper.rb
wally-0.0.46 spec/spec_helper.rb
wally-0.0.45 spec/spec_helper.rb
wally-0.0.44 spec/spec_helper.rb
wally-0.0.43 spec/spec_helper.rb
wally-0.0.42 spec/spec_helper.rb
wally-0.0.41 spec/spec_helper.rb
wally-0.0.40 spec/spec_helper.rb
wally-0.0.39 spec/spec_helper.rb
wally-0.0.38 spec/spec_helper.rb
wally-0.0.37 spec/spec_helper.rb
wally-0.0.36 spec/spec_helper.rb
wally-0.0.35 spec/spec_helper.rb
wally-0.0.34 spec/spec_helper.rb