fixing a few test warnings

This commit is contained in:
Aaron Patterson 2010-10-04 19:32:49 -07:00
parent 1217339616
commit 5769636663
2 changed files with 7 additions and 2 deletions

View File

@ -758,12 +758,12 @@ class ControllerWithSymbolAsFilter < PostsController
def without_exception
# Do stuff...
1 + 1
wtf = 1 + 1
yield
# Do stuff...
1 + 1
wtf += 1
end
end

View File

@ -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