I’m trying to add some functionality to the setup method of all my
I added a method called setup_with_ts in the test_helper 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
puts “setup with ts”
alias_method_chain :setup, :ts
it was just a test to see what would happen.
if i called this method in the setup of a test like :
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 method in the test runs,
but it never runs my aliased chained method.
i’m not sure why the alias_method_chain seems to work for test with no
setup method and not for one that has a setup method defined. Any
help would be great.