Sha256: 61116ef27ce79730005745c273ad7a983f04c3e61f1973c813460c859774c60b
Contents?: true
Size: 376 Bytes
Versions: 3
Compression:
Stored size: 376 Bytes
Contents
require 'spec_helper' module Tim describe Template do describe "Model relationships" do it 'should have many base images' do template = FactoryGirl.build(:template) 2.times do template.base_images << BaseImage.new end template.save! Template.find(template).base_images.size.should == 2 end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tim-0.1.2 | spec/models/template_spec.rb |
tim-0.1.1 | spec/models/template_spec.rb |
tim-0.0.1 | spec/models/template_spec.rb |