Sha256: bc672ca0e31be9ae3ea2c01db39816f836fba96e3fa0fe8a02406b8f33647d89

Contents?: true

Size: 467 Bytes

Versions: 14

Compression:

Stored size: 467 Bytes

Contents

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

describe DattsRight, ".create_definitions!" do
  before do
    reset_database
  end

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
datts_right-0.0.32 spec/datts_right/create_definitions_spec.rb
datts_right-0.0.31 spec/datts_right/create_definitions_spec.rb
datts_right-0.0.30 spec/datts_right/create_definitions_spec.rb
datts_right-0.0.29 spec/datts_right/create_definitions_spec.rb
datts_right-0.0.28 spec/datts_right/create_definitions_spec.rb
datts_right-0.0.27 spec/datts_right/create_definitions_spec.rb
datts_right-0.0.26 spec/datts_right/create_definitions_spec.rb
datts_right-0.0.25 spec/datts_right/create_definitions_spec.rb
datts_right-0.0.24 spec/datts_right/create_definitions_spec.rb
datts_right-0.0.23 spec/datts_right/create_definitions_spec.rb
datts_right-0.0.22 spec/datts_right/create_definitions_spec.rb
datts_right-0.0.21 spec/datts_right/create_definitions_spec.rb
datts_right-0.0.20 spec/datts_right/create_definitions_spec.rb
datts_right-0.0.19 spec/datts_right/create_definitions_spec.rb