Sha256: 6a8ba4372b13af2f70e6a2a32b8ded0788cb9bd80734acbc7fe36947380b5e51

Contents?: true

Size: 513 Bytes

Versions: 1

Compression:

Stored size: 513 Bytes

Contents

# frozen_string_literal: true

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

          matcher :override_exposure do
            include MatcherHelpers

            match { |actual| exposure_attribute(actual, :override) }
            description { "override exposure" }
            failure_message { |actual| "expect that #{actual} would override exposure" }
          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/override_exposure_matcher.rb