Displaying 1 result from an estimated 1 matches for "setup_without_t".
Did you mean:
setup_without_ts
2009 Oct 21
3
alias_method_chain and ActiveSupport::TestCase
...per and chained
it using alias_method_chain :setup, :ts and that works great for every
test that does not define setup in the test.
So for my unit tests i tried also defining the same method
setup_with_ts in a
class ActiveSupport::TestCase
def setup_with_ts
puts "setup with ts"
setup_without_ts
end
alias_method_chain :setup, :ts
end
it was just a test to see what would happen.
if i called this method in the setup of a test like :
def setup
setup_with_ts
.
.
.
end
that will call it just fine so the method exists. but if i remove the
setup_with_ts line and run a test the setup...