Module: Dataset::Extensions::CucumberWorld

Defined in:
lib/dataset/extensions/cucumber.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#dataset(*datasets, &block) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/dataset/extensions/cucumber.rb', line 5

def dataset(*datasets, &block)
  add_dataset(*datasets, &block)

  load = nil
  $__cucumber_toplevel.Before do
    load = dataset_session.load_datasets_for(self.class)
    extend_from_dataset_load(load)
  end
  # Makes sure the datasets are reloaded after each scenario
  Cucumber::Rails.use_transactional_fixtures
end