Removed shoulda assertions.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9088 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-03-04 13:43:17 +00:00
parent a6992aa6fc
commit 80663e694d
2 changed files with 0 additions and 34 deletions

View File

@ -44,35 +44,6 @@ class ProjectTest < ActiveSupport::TestCase
User.current = nil
end
should_validate_presence_of :name
should_validate_presence_of :identifier
should_validate_uniqueness_of :identifier
context "associations" do
should_have_many :members
should_have_many :users, :through => :members
should_have_many :member_principals
should_have_many :principals, :through => :member_principals
should_have_many :enabled_modules
should_have_many :issues
should_have_many :issue_changes, :through => :issues
should_have_many :versions
should_have_many :time_entries
should_have_many :queries
should_have_many :documents
should_have_many :news
should_have_many :issue_categories
should_have_many :boards
should_have_many :changesets, :through => :repository
should_have_one :repository
should_have_one :wiki
should_have_and_belong_to_many :trackers
should_have_and_belong_to_many :issue_custom_fields
end
def test_truth
assert_kind_of Project, @ecookbook
assert_equal "eCookbook", @ecookbook.name

View File

@ -530,8 +530,6 @@ class UserTest < ActiveSupport::TestCase
assert_equal 1, anon2.errors.count
end
should_have_one :rss_token
def test_rss_key
assert_nil @jsmith.rss_token
key = @jsmith.rss_key
@ -541,9 +539,6 @@ class UserTest < ActiveSupport::TestCase
assert_equal key, @jsmith.rss_key
end
should_have_one :api_token
context "User#api_key" do
should "generate a new one if the user doesn't have one" do
user = User.generate_with_protected!(:api_token => nil)