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.1.3 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.1.2 lib/cancan-permits/rspec/matchers/have_license.rb
cancan-permits-0.1.1 lib/cancan-permits/rspec/matchers/have_license.rb