Sha256: 2565bfed9c987a6bf11f00a47c17df3177a6180a435671e50c62ac716b3d3650
Contents?: true
Size: 637 Bytes
Versions: 2
Compression:
Stored size: 637 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 << FactoryGirl.build(:base_image) end template.save! Template.find(template).base_images.size.should == 2 end end describe "XML helper methods" do it 'should return os struct' do os = FactoryGirl.build(:template).os os.name.should == 'Fedora' os.version.should == '15' os.arch.should == 'x86_64' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tim-0.3.0 | spec/models/template_spec.rb |
tim-0.2.0 | spec/models/template_spec.rb |