Change tests to use ruby/rails assertions.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8249 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-12-16 23:35:05 +00:00
parent ad25e3807d
commit 9b1e831fa6
2 changed files with 32 additions and 49 deletions
-9
View File
@@ -207,15 +207,6 @@ class ActiveSupport::TestCase
end
end
def self.should_create_a_new_user(&block)
should "create a new user" do
user = instance_eval &block
assert user
assert_kind_of User, user
assert !user.new_record?
end
end
# Test that a request allows the three types of API authentication
#
# * HTTP Basic with username and password