Sha256: 97d940d1833d9c468624e831da42ec00025f0dd1cd84b9d43a5e8d332329beb6

Contents?: true

Size: 701 Bytes

Versions: 2

Compression:

Stored size: 701 Bytes

Contents

# Copyright:: (c) Autotelik Media Ltd 2015
# Author ::   Tom Statter
# License::   MIT
#

RSpec.configure do |_config|
  shared_context 'ClearAllCatalogues' do
    before(:each) do
      DataShift::ModelMethods::Catalogue.clear
      DataShift::ModelMethods::Manager.clear
    end
  end

  shared_context 'ClearThenManageProject' do
    before(:each) do
      DataShift::ModelMethods::Catalogue.clear
      DataShift::ModelMethods::Manager.clear
    end

    # A ModelMethods::Collection for Project
    let(:project_collection)  { DataShift::ModelMethods::Manager.catalog_class( Project ) }

    let(:project_headers)     { [:value_as_string, :owner, :value_as_boolean, :value_as_double] }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
datashift-0.40.1 spec/support/clear_and_manage_contexts.rb
datashift-0.40.0 spec/support/clear_and_manage_contexts.rb