Sha256: fcfb2000853e2b8f09f0950075677c3ca2bb77338f1825b9e9aa1622587fa4e1

Contents?: true

Size: 276 Bytes

Versions: 12

Compression:

Stored size: 276 Bytes

Contents

require 'salesforce_id'
require 'salesforce_id/rspec'
require 'rspec/expectations'

module ::SalesforceId::RSpec

  module BeSalesforceIdMatcher
    extend RSpec::Matchers::DSL

    matcher :be_salesforce_id do
      match { |id| SalesforceId.valid?(id) }
    end

  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
salesforce_id-1.4.6 lib/salesforce_id/rspec/be_salesforce_id_matcher.rb
salesforce_id-1.4.5 lib/salesforce_id/rspec/be_salesforce_id_matcher.rb
salesforce_id-1.4.4 lib/salesforce_id/rspec/be_salesforce_id_matcher.rb
salesforce_id-1.4.3 lib/salesforce_id/rspec/be_salesforce_id_matcher.rb
salesforce_id-1.4.2 lib/salesforce_id/rspec/be_salesforce_id_matcher.rb
salesforce_id-1.4.1 lib/salesforce_id/rspec/be_salesforce_id_matcher.rb
salesforce_id-1.4.0 lib/salesforce_id/rspec/be_salesforce_id_matcher.rb
salesforce_id-1.3.4 lib/salesforce_id/rspec/be_salesforce_id_matcher.rb
salesforce_id-1.3.3 lib/salesforce_id/rspec/be_salesforce_id_matcher.rb
salesforce_id-1.3.2 lib/salesforce_id/rspec/be_salesforce_id_matcher.rb
salesforce_id-1.3.1 lib/salesforce_id/rspec/be_salesforce_id_matcher.rb
salesforce_id-1.3.0 lib/salesforce_id/rspec/be_salesforce_id_matcher.rb