Sha256: a22752d845b633236deca83159e012f796020c7258dd77aa4273c686b00623f5

Contents?: true

Size: 517 Bytes

Versions: 46

Compression:

Stored size: 517 Bytes

Contents

module Dataset
  module Extensions # :nodoc:
    
    module RSpecExampleGroup # :nodoc:
      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
    end
    
  end
end
Spec::Example::ExampleGroup.extend Dataset::Extensions::RSpecExampleGroup

Version data entries

46 entries across 46 versions & 8 rubygems

Version Path
aiwilliams-dataset-1.2.0 lib/dataset/extensions/rspec.rb
aiwilliams-dataset-1.3.0 lib/dataset/extensions/rspec.rb
aiwilliams-dataset-1.3.1 lib/dataset/extensions/rspec.rb
karsthammer-dataset-1.2.0 lib/dataset/extensions/rspec.rb
radiant-1.1.4 vendor/plugins/dataset/lib/dataset/extensions/rspec.rb
radiant-1.1.3 vendor/plugins/dataset/lib/dataset/extensions/rspec.rb
radiant-1.1.2 vendor/plugins/dataset/lib/dataset/extensions/rspec.rb
radiant-1.1.1 vendor/plugins/dataset/lib/dataset/extensions/rspec.rb
radiant-1.1.0 vendor/plugins/dataset/lib/dataset/extensions/rspec.rb
radiant-1.1.0.rc1 vendor/plugins/dataset/lib/dataset/extensions/rspec.rb
radiant-1.1.0.beta vendor/plugins/dataset/lib/dataset/extensions/rspec.rb
radiant-1.0.1 vendor/plugins/dataset/lib/dataset/extensions/rspec.rb
radiant-1.1.0.alpha vendor/plugins/dataset/lib/dataset/extensions/rspec.rb
radiant-1.0.0 vendor/plugins/dataset/lib/dataset/extensions/rspec.rb
radiant-1.0.0.rc5 vendor/plugins/dataset/lib/dataset/extensions/rspec.rb
radiant-1.0.0.rc4 vendor/plugins/dataset/lib/dataset/extensions/rspec.rb
radiant-1.0.0.rc3 vendor/plugins/dataset/lib/dataset/extensions/rspec.rb
kajam-1.0.3.rc2 vendor/plugins/dataset/lib/dataset/extensions/rspec.rb
radiant-1.0.0.rc2 vendor/plugins/dataset/lib/dataset/extensions/rspec.rb
radiant-1.0.0.rc1 vendor/plugins/dataset/lib/dataset/extensions/rspec.rb