Sha256: c07cbc4fe1d80dc7a0ba12a9fa9540ecaeb8caebe4bd545c2deaee9fd458c28d
Contents?: true
Size: 494 Bytes
Versions: 6
Compression:
Stored size: 494 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 subject { @user } 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
6 entries across 6 versions & 2 rubygems