test/rails/active_support/test_assertions.rb in minitest-rails-1.0.1 vs test/rails/active_support/test_assertions.rb in minitest-rails-2.0.0.beta1
- old
+ new
@@ -1,36 +1,8 @@
require "helper"
class TestActiveSupportAssertions < ActiveSupport::TestCase
- def test_assert_blank
- assert_blank ""
- assert_blank nil
- assert_blank []
- assert_blank Hash.new
- end
-
- def test_refute_present
- refute_present ""
- refute_present nil
- refute_present []
- refute_present Hash.new
- end
-
- def test_assert_present
- assert_present "here"
- assert_present Object.new
- assert_present [1,2,3]
- assert_present :key => :value
- end
-
- def test_refute_blank
- refute_blank "here"
- refute_blank Object.new
- refute_blank [1,2,3]
- refute_blank :key => :value
- end
-
def test_assert_difference
counter = 0
assert_difference "counter" do
counter += 1
end