Sha256: 2dbe4733eb7149446ff7f49b5da80e7bd88bdb3e85c6a86241df448bb3d6a8b2
Contents?: true
Size: 469 Bytes
Versions: 1
Compression:
Stored size: 469 Bytes
Contents
# frozen_string_literal: true module RSpec module Grape module Entity module Matchers module BeSafeMatcher extend RSpec::Matchers::DSL matcher :be_safe do include MatcherHelpers match { |actual| exposure_attribute(actual, :is_safe) } description { "be safe" } failure_message { |actual| "expect that #{actual} to be safe" } 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_safe_matcher.rb |