Sha256: 4769fb95512a1d15ce9b6e3943c609a6adb4bc20659f0ea39b435e41a155ed86

Contents?: true

Size: 467 Bytes

Versions: 14

Compression:

Stored size: 467 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

class UserTest < ActiveSupport::TestCase

  context 'A user instance with has_muck_profile' do
    setup do
      @user = Factory(:user)
    end
    should_accept_nested_attributes_for :profile
    should_have_one :profile
    
    should "have a profile after creation" do
      assert @user.profile
    end

    should "have a photo method delegated to the profile" do
      assert @user.photo
    end
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
muck-profiles-0.1.13 test/rails_root/test/unit/user_test.rb
muck-profiles-0.1.12 test/rails_root/test/unit/user_test.rb
muck-profiles-0.1.11 test/rails_root/test/unit/user_test.rb
muck-profiles-0.1.10 test/rails_root/test/unit/user_test.rb
muck-profiles-0.1.7 test/rails_root/test/unit/user_test.rb
muck-profiles-0.1.8 test/rails_root/test/unit/user_test.rb
muck-profiles-0.1.9 test/rails_root/test/unit/user_test.rb
muck-profiles-0.1.0 test/rails_root/test/unit/user_test.rb
muck-profiles-0.1.1 test/rails_root/test/unit/user_test.rb
muck-profiles-0.1.2 test/rails_root/test/unit/user_test.rb
muck-profiles-0.1.3 test/rails_root/test/unit/user_test.rb
muck-profiles-0.1.4 test/rails_root/test/unit/user_test.rb
muck-profiles-0.1.5 test/rails_root/test/unit/user_test.rb
muck-profiles-0.1.6 test/rails_root/test/unit/user_test.rb