test/fixtures/phones.yml in poly_belongs_to-0.1.3 vs test/fixtures/phones.yml in poly_belongs_to-0.1.4
- old
+ new
@@ -1,5 +1,14 @@
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
-one:
- phoneable_id: 1
- phoneable_type: User
+bob_phone:
+ phoneable_id: <%= ActiveRecord::FixtureSet.identify(:bob_prof) %>
+ phoneable_type: Profile
+ content: <%= SecureRandom.hex %>
+steve_phone:
+ phoneable_id: <%= ActiveRecord::FixtureSet.identify(:steve_prof) %>
+ phoneable_type: Profile
+ content: <%= SecureRandom.hex %>
+susan_phone:
+ phoneable_id: <%= ActiveRecord::FixtureSet.identify(:susan_prof) %>
+ phoneable_type: Profile
+ content: <%= SecureRandom.hex %>