refactor default_data_test to not depend on fixtures or any other preloaded data

pull/1186/head
Philipp Tessenow 12 years ago
parent 3d749367c9
commit 8e3dec6dad
  1. 3
      test/unit/default_data_test.rb

@ -15,9 +15,10 @@ require File.expand_path('../../test_helper', __FILE__)
class DefaultDataTest < ActiveSupport::TestCase
include Redmine::I18n
fixtures :roles
def test_no_data
assert Redmine::DefaultData::Loader::no_data?
Redmine::DefaultData::Loader::load()
assert !Redmine::DefaultData::Loader::no_data?
Role.delete_all("builtin = 0")
Tracker.delete_all

Loading…
Cancel
Save