Sha256: bf8e05728b4410553a8ce2764452677f777ae72a6e56e4b5111866c0c4fe5bec

Contents?: true

Size: 565 Bytes

Versions: 23

Compression:

Stored size: 565 Bytes

Contents

$__dataset_top_level = self
module Dataset
  module Extensions # :nodoc:

    module CucumberWorld # :nodoc:
      def dataset(*datasets, &block)
        add_dataset(*datasets, &block)
        
        $__dataset_top_level.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
        self.use_transactional_fixtures = true
      end
    end

  end
end
Cucumber::Rails::World.extend Dataset::Extensions::CucumberWorld

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
radiant-1.1.4 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
radiant-1.1.3 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
radiant-1.1.2 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
radiant-1.1.1 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
radiant-1.1.0 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
radiant-1.1.0.rc1 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
radiant-1.1.0.beta vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
radiant-1.0.1 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
radiant-1.1.0.alpha vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
radiant-1.0.0 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
radiant-1.0.0.rc5 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
radiant-1.0.0.rc4 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
radiant-1.0.0.rc3 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
kajam-1.0.3.rc2 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
radiant-1.0.0.rc2 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
radiant-1.0.0.rc1 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
radiantcms-couchrest_model-0.1.4 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
radiantcms-couchrest_model-0.1.3 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
radiantcms-couchrest_model-0.1.2 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
radiantcms-couchrest_model-0.1.1 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb