Sha256: df9b4054725f11fe389a1c3cd2809658cf851c5051eb69aa60e489bce7a7ba8e

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

require 'simplecov' unless RUBY_VERSION.to_s < '1.9.0'


require "#{File.dirname(__FILE__)}/../lib/cuke_modeler"

require "#{File.dirname(__FILE__)}/unit/feature_element_unit_specs"
require "#{File.dirname(__FILE__)}/unit/nested_element_unit_specs"
require "#{File.dirname(__FILE__)}/unit/tagged_element_unit_specs"
require "#{File.dirname(__FILE__)}/unit/containing_element_unit_specs"
require "#{File.dirname(__FILE__)}/unit/bare_bones_unit_specs"
require "#{File.dirname(__FILE__)}/unit/test_element_unit_specs"
require "#{File.dirname(__FILE__)}/unit/prepopulated_unit_specs"
require "#{File.dirname(__FILE__)}/unit/sourced_element_unit_specs"
require "#{File.dirname(__FILE__)}/unit/raw_element_unit_specs"

RSpec.configure do |config|
  if Gem.loaded_specs['gherkin'].version.version[/^3/]
    config.filter_run_excluding :gherkin2 => true
  else
    config.filter_run_excluding :gherkin3 => true
  end

  config.before(:all) do
    @default_file_directory = "#{File.dirname(__FILE__)}/temp_files"
    @default_feature_file_name = 'test_feature.feature'
  end

  config.before(:each) do
    FileUtils.mkdir(@default_file_directory)
  end

  config.after(:each) do
    FileUtils.remove_dir(@default_file_directory, true)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cuke_modeler-0.1.0 spec/spec_helper.rb