Sha256: 318779bd429ef1ae6d540f8f085d375000296965326b3eddf0743f4fc1b06577

Contents?: true

Size: 245 Bytes

Versions: 23

Compression:

Stored size: 245 Bytes

Contents

module RSpec::RubyContentMatchers 
  module License 
    def have_license name
      have_call :licenses, :args => [name.to_sym]
    end    

    def have_licenses *names
      have_call :licenses, :args => names.to_symbols
    end    
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
cancan-permits-0.3.12 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.3.11 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.3.10 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.3.9 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.3.8 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.3.7 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.3.6 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.3.5 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.3.4 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.3.2 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.3.1 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.3.0 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.2.9 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.2.8 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.2.7 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.2.5 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.2.3 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.2.2 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.2.1 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.1.4 lib/cancan-permits/rspec/matchers/have_license.rb