Sha256: ca4a4fc0f8deb29b78dc214c22a4a2ae3a42d8f449d9eab5afb0a8431b208889

Contents?: true

Size: 487 Bytes

Versions: 1

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

module RSpec
  module Grape
    module Entity
      module Matchers
        module BeMergedMatcher
          extend RSpec::Matchers::DSL

          matcher :be_merged do
            include MatcherHelpers

            match { |actual| exposure_attribute(actual, :for_merge) }
            description { "be merged" }
            failure_message { |actual| "expect that #{actual} would merge contents" }
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-grape-entity-0.1.0 lib/rspec_grape_entity/matchers/be_merged_matcher.rb