Sha256: 2b3c9b1ba78ba010f43231c4a2481cb4ddeca950f9265e679a4a8b2b35ed3d24

Contents?: true

Size: 492 Bytes

Versions: 3

Compression:

Stored size: 492 Bytes

Contents

require 'spec_helper'

describe ProviderType do
  describe "Dummy Model relationships" do
    before (:each) do
      Tim::TargetImage.any_instance.stub(:create_factory_target_image).and_return(true)
    end

    it 'should have many target images' do
      provider_type = ProviderType.new
      2.times do
        provider_type.target_images << Tim::TargetImage.new
      end
      provider_type.save!
      ProviderType.find(provider_type).target_images.size.should == 2
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tim-0.1.2 spec/models/dummy/provider_type_spec.rb
tim-0.1.1 spec/models/dummy/provider_type_spec.rb
tim-0.0.1 spec/models/dummy/provider_type_spec.rb