Sha256: f0a48844ca0a83d0db81c97cf069192d96adc035559509278ffffdbafd30c256

Contents?: true

Size: 524 Bytes

Versions: 3

Compression:

Stored size: 524 Bytes

Contents

require 'spec_helper'

describe ProviderAccount do
  describe "Dummy Model relationships" do
    before(:each) do
      Tim::ProviderImage.any_instance.stub(:create_factory_provider_image).and_return(true)
    end

    it 'should have many provider images' do
      provider_account = ProviderAccount.new
      2.times do
        provider_account.provider_images << Tim::ProviderImage.new
      end
      provider_account.save!
      ProviderAccount.find(provider_account).provider_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_account_spec.rb
tim-0.1.1 spec/models/dummy/provider_account_spec.rb
tim-0.0.1 spec/models/dummy/provider_account_spec.rb