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