fixing a few test warnings
This commit is contained in:
parent
1217339616
commit
5769636663
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue