Sha256: b4ebfa02c8096f16117c6bd457335d7a58fb75139539cc91a336a769ada39371
Contents?: true
Size: 671 Bytes
Versions: 7
Compression:
Stored size: 671 Bytes
Contents
require 'rspec/core' require 'cancan-permits' DIR = File.dirname(__FILE__) describe 'Load License rules' do before :each do @permissions_file = File.join(DIR, 'config', 'licenses.yml') end it "should load a licenses permission file" do loader = PermissionsLoader.new @permissions_file # puts "loaded permissions #{loader.permissions}" loader.permissions.should_not be_empty end it "should be able to instantiate a base license with permission file" do License::Base.new 'x', @permissions_file end it "should be able to instantiate a base permit without permission file" do License::Base.new 'x' end end
Version data entries
7 entries across 7 versions & 1 rubygems