Permalink
Browse files

Using callbacks instead of setup method

  • Loading branch information...
paneq committed May 5, 2009
1 parent d8bc1bd commit 8fc7e3cd497db23368bb061e51a1dddf2a160988
Showing with 3 additions and 6 deletions.
  1. +3 −6 test/unit/category_test.rb
@@ -2,12 +2,9 @@

class CategoryTest < ActiveSupport::TestCase

def setup
prepare_currencies
save_rupert
save_jarek
end

setup :prepare_currencies
setup :save_rupert
setup :save_jarek

def test_zero_saldo_at_start
@rupert.categories.each do |category|

0 comments on commit 8fc7e3c

Please sign in to comment.