FactoryGirl.define do factory :standalone_resource do |u| sequence(:name) { |n| "standalone_resource#{n}" } description 'The Description' end factory :standalone_resource2 , :parent => :standalone_resource do name 'Test standalone resoource' end end