Skip to content

Commit

Permalink
* Put build_all in test setup and delete_all in test teardown so all …
Browse files Browse the repository at this point in the history
…tests will pass the on first run of test suite.
  • Loading branch information
sbecker committed Jul 2, 2007
1 parent 4f70acd commit 9fb8e89
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/asset_packager_test.rb
Expand Up @@ -7,6 +7,14 @@
class AssetPackagerTest < Test::Unit::TestCase
include Synthesis

def setup
Synthesis::AssetPackage.build_all
end

def teardown
Synthesis::AssetPackage.delete_all
end

def test_find_by_type
js_asset_packages = Synthesis::AssetPackage.find_by_type("javascripts")
assert_equal 2, js_asset_packages.length
Expand Down

0 comments on commit 9fb8e89

Please sign in to comment.