Sha256: 86a5b50cde31045e015fcc37a69fc1be4bdec7f2a0aae3c82e7ebe9838a371eb
Contents?: true
Size: 928 Bytes
Versions: 3
Compression:
Stored size: 928 Bytes
Contents
unless RUBY_VERSION.to_s < '1.9.0' require 'simplecov' SimpleCov.command_name('cuke_cataloger-cucumber') end require 'cuke_cataloger' here = File.dirname(__FILE__) DEFAULT_FEATURE_FILE_NAME = 'test_feature' DEFAULT_FILE_DIRECTORY = "#{here}/../temp_files" PROJECT_ROOT = "#{here}/../../.." FIXTURE_DIRECTORY = "#{here}/../../fixtures" Before do begin @default_feature_file_name = DEFAULT_FEATURE_FILE_NAME @default_file_directory = DEFAULT_FILE_DIRECTORY FileUtils.mkdir(@default_file_directory) rescue => e puts "Error caught in before hook!" puts "Type: #{e.class}" puts "Message: #{e.message}" end end After do begin `git checkout HEAD -- #{FIXTURE_DIRECTORY}` FileUtils.remove_dir(@default_file_directory, true) rescue => e puts "Error caught in before hook!" puts "Type: #{e.class}" puts "Message: #{e.message}" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cuke_cataloger-1.4.0 | testing/cucumber/support/env.rb |
cuke_cataloger-1.3.1 | testing/cucumber/support/env.rb |
cuke_cataloger-1.3.0 | testing/cucumber/support/env.rb |