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