What have you found for these years?

2010-10-18

rails test weirdness

i totally have no idea why i should add an empty setup block in a test
case to make the test pass, otherwise it failed just like the setup block
in test_helper.rb didn't run but actually it did run!
class StrandControllerTest < ActionController::TestCase
  def setup # this can't be removed, or test would fail!
  end
man, enough of rails weirdness.

0 retries:

Post a Comment

All texts are licensed under CC Attribution 3.0