spec/factories/pwb_props.rb in pwb-0.0.1 vs spec/factories/pwb_props.rb in pwb-0.0.2
- old
+ new
@@ -1,13 +1,17 @@
FactoryGirl.define do
factory :pwb_prop, class: 'Pwb::Prop' do
title_en 'A property for '
- trait :available_for_sale do
+ trait :sale do
for_sale true
visible true
- end
- trait :available_for_long_term_rent do
+ end
+ trait :long_term_rent do
for_rent_long_term true
visible true
- end
+ end
+ trait :short_term_rent do
+ for_rent_short_term true
+ visible true
+ end
end
end