Module: Dataset::Extensions::RSpecExampleGroup

Defined in:
lib/dataset/extensions/rspec.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
16
# File 'lib/dataset/extensions/rspec.rb', line 5

def dataset(*datasets, &block)
  add_dataset(*datasets, &block)
  
  load = nil
  before(:all) do
    load = dataset_session.load_datasets_for(self.class)
    extend_from_dataset_load(load)
  end
  before(:each) do
    extend_from_dataset_load(load)
  end
end