Sha256: 80a4635729e5f365ed6e43885af091a2503154a2523ecff62cca8f98ebab8664

Contents?: true

Size: 429 Bytes

Versions: 2

Compression:

Stored size: 429 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe DattsRight, ".create_definitions!" do
  it "should create definitions for all existing records, if the definition does not exist" do
    2.times do
      Category.create.destroy.dynamic_attribute_definition
    end
    Category.create_definitions!
    Category.all.each do |c|
      c.dynamic_attribute_definition.should_not be_nil
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
datts_right-0.0.18 spec/datts_right/create_definitions_spec.rb
datts_right-0.0.17 spec/datts_right/create_definitions_spec.rb