문제

I just got going with autotesting in Rails. It seems like I have everything correctly set up (as I get red/green growl notifications). But I don't understand the growl notifications.

  • I have one single model with two attributes
  • I have the following gems (autotest-rails, autotest-growl, autotest-fsevent)
  • I have set up the ~/.autotest file (with require 'autotest/fsevent', require 'autotest/growl')

I have one test looking like this:

test "my first test" do
  assert true
end

What I don't understand:

  1. I get two growl windows, why?

  2. The first window displays the correct "1 test, 1 assertion", but the second window displays "15 test, 21 assertions". How is this possible?

도움이 되었습니까?

해결책

Of course, that was it. The scaffolding had generated functional tests that I wasn't aware of. Thank you so much @prusswan for the hint.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top