Sha256: 1ad65816f5d58332fdf9fa83a7825229258060b4719da90e1fc7501fe56cd1ed

Contents?: true

Size: 331 Bytes

Versions: 2

Compression:

Stored size: 331 Bytes

Contents

require 'spec_helper'

describe User do
  describe "Dummy Model relationships" do
    it 'should have many base images' do
      user = User.new
      2.times do
        user.base_images << FactoryGirl.build(:base_image_with_template)
      end
      user.save!
      User.find(user).base_images.size.should == 2
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tim-0.3.0 spec/models/dummy/user_spec.rb
tim-0.2.0 spec/models/dummy/user_spec.rb