Sha256: 1263835696d51b672eb483314eb05e5b408d6e59bb95e29974dfb7b989d76c96
Contents?: true
Size: 776 Bytes
Versions: 3
Compression:
Stored size: 776 Bytes
Contents
require 'rubygems' require "bundler/setup" require 'roles' require 'ammeter/init' load File.dirname(__FILE__) + "/support/active_record.rb" def reset_data User.destroy_all Role.destroy_all Forum.destroy_all Group.destroy_all Privilege.destroy_all Customer.destroy_all # Users User.create(:login => "admin") User.create(:login => "moderator") User.create(:login => "god") User.create(:login => "zombie") Customer.create(:login => "admin") Customer.create(:login => "moderator") Customer.create(:login => "god") Customer.create(:login => "zombie") # Resources Forum.create(:name => "forum 1") Forum.create(:name => "forum 2") Forum.create(:name => "forum 3") Group.create(:name => "group 1") Group.create(:name => "group 2") end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
roles-0.2.1 | spec/spec_helper.rb |
roles-0.2.0 | spec/spec_helper.rb |
roles-0.1.0 | spec/spec_helper.rb |