diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-04 19:32:49 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-04 19:32:49 -0700 |
commit | 5769636663c2849fd132fd593c0f6d29702b7cf1 (patch) | |
tree | b6d146db415f4cb3a09e7fbb1bf0d2b3640adc1d /actionpack/test/lib | |
parent | 12173396163616e077f761e190c13beb43d536bd (diff) | |
download | rails-5769636663c2849fd132fd593c0f6d29702b7cf1.tar.gz rails-5769636663c2849fd132fd593c0f6d29702b7cf1.tar.bz2 rails-5769636663c2849fd132fd593c0f6d29702b7cf1.zip |
fixing a few test warnings
Diffstat (limited to 'actionpack/test/lib')
-rw-r--r-- | actionpack/test/lib/controller/fake_models.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/lib/controller/fake_models.rb b/actionpack/test/lib/controller/fake_models.rb index cf3f2f7fa4..dba632e6df 100644 --- a/actionpack/test/lib/controller/fake_models.rb +++ b/actionpack/test/lib/controller/fake_models.rb @@ -55,6 +55,11 @@ class Post < Struct.new(:title, :author_name, :body, :secret, :written_on, :cost alias_method :secret?, :secret + def initialize(*args) + super + @persisted = false + end + def persisted=(boolean) @persisted = boolean end |