OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/spec/lib/loader_spec.rb

25 lines
797 B

14 years ago
require File.dirname(__FILE__) + '/../spec_helper'
describe Redmine::DefaultData::Loader do
describe :load do
before :each do
clear_access_control_permissions
create_non_member_role
create_anonymous_role
Redmine::DefaultData::Loader.load
end
#describes only the results of load in the db
it {Role.find_by_name(I18n.t(:default_role_manager)).attributes["type"].should eql "Role"}
if Redmine::VERSION::MAJOR < 1
it {Role.find_by_name(I18n.t(:default_role_developper)).attributes["type"].should eql "Role"} #[sic]
else
it {Role.find_by_name(I18n.t(:default_role_developer)).attributes["type"].should eql "Role"} #[sic]
end
14 years ago
it {Role.find_by_name(I18n.t(:default_role_reporter)).attributes["type"].should eql "Role"}
end
end