Sha256: ad0aed1f10caa11d41afccef434654f301d8e38df813f641fb168a8017504abf

Contents?: true

Size: 283 Bytes

Versions: 9

Compression:

Stored size: 283 Bytes

Contents

module RSpec::RubyContentMatchers 
  module License 
    def have_license_class name, superclass = nil
      superclass ? have_subclass(name, :superclass => superclass) : have_class(name)
    end    

    def have_license_classes *names
      have_classes names
    end    
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cancan-permits-0.2.7 lib/cancan-permits/rspec/matchers/have_license_class.rb
cancan-permits-0.2.5 lib/cancan-permits/rspec/matchers/have_license_class.rb
cancan-permits-0.2.3 lib/cancan-permits/rspec/matchers/have_license_class.rb
cancan-permits-0.2.2 lib/cancan-permits/rspec/matchers/have_license_class.rb
cancan-permits-0.2.1 lib/cancan-permits/rspec/matchers/have_license_class.rb
cancan-permits-0.1.4 lib/cancan-permits/rspec/matchers/have_license_class.rb
cancan-permits-0.1.3 lib/cancan-permits/rspec/matchers/have_license_class.rb
cancan-permits-0.1.2 lib/cancan-permits/rspec/matchers/have_license_class.rb
cancan-permits-0.1.1 lib/cancan-permits/rspec/matchers/have_license_class.rb