Sha256: 316a06f058cc59f7ed8b562b2b79ec23f03f68855ba8c5b3343b3818bed1d6a0

Contents?: true

Size: 956 Bytes

Versions: 3

Compression:

Stored size: 956 Bytes

Contents

unless RUBY_VERSION.to_s < '1.9.0'
  require 'simplecov'
  SimpleCov.start
end

include Test::Unit::Assertions

require File.dirname(__FILE__) + '/../../lib/cucumber_analytics'

CucumberAnalytics::Logging.set_log_level(Logger::FATAL)


DEFAULT_FEATURE_FILE_NAME = 'test_feature.feature'
DEFAULT_STEP_FILE_NAME = 'test_steps.rb'
DEFAULT_FILE_DIRECTORY = "#{File.dirname(__FILE__)}/../temp_files"
TEST_FILE_DIRECTORY = "#{File.dirname(__FILE__)}/../test_files"
TEST_STEP_FILE_LOCATION = "#{DEFAULT_FILE_DIRECTORY}/#{DEFAULT_STEP_FILE_NAME}"


Before do
  @default_feature_file_name = DEFAULT_FEATURE_FILE_NAME
  @default_step_file_name = DEFAULT_STEP_FILE_NAME
  @test_file_directory = TEST_FILE_DIRECTORY
  @default_file_directory = DEFAULT_FILE_DIRECTORY
  @test_step_file_location = TEST_STEP_FILE_LOCATION

  FileUtils.mkdir(@default_file_directory)
end

After do
  FileUtils.remove_dir(@default_file_directory, true)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber_analytics-0.0.6 features/support/env.rb
cucumber_analytics-0.0.5 features/support/env.rb
cucumber_analytics-0.0.4 features/support/env.rb