moonmaster9000 / dupe

BDD your (ActiveResource compatible) services from the client-side, before they exist.
62 stars 17 forks source link

Modifying a duped record modifies the definition of that record #5

Open moonmaster9000 opened 14 years ago

moonmaster9000 commented 14 years ago

steps to reproduce:

require 'dupe'
Dupe.define :book do |book|
  book.authors []
end
b = Dupe.create :book
a = Dupe.create :author
b.authors << a

# at this point, b.authors includes a
# however, if you create a new book, it will also have that author in it
Dupe.create :book