Sha256: 3796ea2f5da082ffc41debf2a9e179f54ff023d5acd4a8a649a0d621e56b2363

Contents?: true

Size: 587 Bytes

Versions: 15

Compression:

Stored size: 587 Bytes

Contents

require 'cucumber/rails/world'
require 'dataset'

Cucumber::Rails::World.class_eval do
  include Dataset
  radiant_dataset_path = "#{RADIANT_ROOT}/spec/datasets"
  local_extension_paths = $LOAD_PATH.select{|p| p =~ /vendor\/extensions\/\w+[^\/]$/ }
  gem_extension_paths = $LOAD_PATH.select{|p| p =~ /gems\/radiant/ }
  dataset_paths = (local_extension_paths + gem_extension_paths).map{|p| p << '/spec/datasets' } << radiant_dataset_path
  
  Dataset::Resolver.default = Dataset::DirectoryResolver.new(*dataset_paths)
  self.datasets_database_dump_path = "#{Rails.root}/tmp/dataset"
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
radiant-1.1.4 features/support/dataset.rb
radiant-1.1.3 features/support/dataset.rb
radiant-1.1.2 features/support/dataset.rb
radiant-1.1.1 features/support/dataset.rb
radiant-1.1.0 features/support/dataset.rb
radiant-1.1.0.rc1 features/support/dataset.rb
radiant-1.1.0.beta features/support/dataset.rb
radiant-1.0.1 features/support/dataset.rb
radiant-1.1.0.alpha features/support/dataset.rb
radiant-1.0.0 features/support/dataset.rb
radiant-1.0.0.rc5 features/support/dataset.rb
radiant-1.0.0.rc4 features/support/dataset.rb
radiant-1.0.0.rc3 features/support/dataset.rb
radiant-1.0.0.rc2 features/support/dataset.rb
radiant-1.0.0.rc1 features/support/dataset.rb