Sha256: c5772f8fafe4ef9d949f35749e27e8b176b5d80f01d0bd71878a8ab742fda139

Contents?: true

Size: 484 Bytes

Versions: 3

Compression:

Stored size: 484 Bytes

Contents

module AdminCore
  module RSpec
    module Matchers
      extend RSpec::Matchers::DSL

      matcher :have_shape_of_ResourceField do |type_value: nil, value_type: nil|
        match do |actual|
          expect(actual).to match(
            'displayName' => be_a(String),
            'name' => be_a(String),
            'type' => type_value ? type_value : be_a(String),
            'value' => be_a(value_type ? value_type : Object)
          )
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
admin_core-0.0.3 lib/admin_core/rspec/matchers.rb
admin_core-0.0.2 lib/admin_core/rspec/matchers.rb
admin_core-0.0.1 lib/admin_core/rspec/matchers.rb