Sha256: 26690f624d0d16629b108164858f50e521d567d8c4c6a3545022f875c41f27c1

Contents?: true

Size: 544 Bytes

Versions: 2

Compression:

Stored size: 544 Bytes

Contents

shared_examples 'Unidom::Category::Categorizing' do |model_attributes, categorized, category|

  before :each do
  end

  after :each do
  end

  context do

    it_behaves_like 'assert_present!', described_class, :categorize!, [ categorized, { into: category, at: Time.now } ], [ { 0 => :categorized }, :into, :at ]

    it_behaves_like 'has_many', model_attributes, :categorized, categorized.class, [ categorized.attributes ]

    it_behaves_like 'monomorphic scope', model_attributes, :category_is, :category, [ category.class ]

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
unidom-category-2.0.1 lib/rspec/models/unidom/category/categorizing_shared_examples.rb
unidom-category-2.0 lib/rspec/models/unidom/category/categorizing_shared_examples.rb