Sha256: adc89f286b188505b7b9c4493fd3da662a3f59c9f7b164e78c647c36b7d34ee2
Contents?: true
Size: 604 Bytes
Versions: 1
Compression:
Stored size: 604 Bytes
Contents
# frozen_string_literal: true module RSpec module Grape module Entity module Matchers module BeUsingClassMatcher extend RSpec::Matchers::DSL matcher :be_using_class do |expected| include MatcherHelpers match { |actual| expect(exposure_attribute(actual, :using_class)).to be expected } description { "be using entity class #{entity_class_name expected}" } failure_message { |actual| "expect that #{actual} would be using class #{entity_class_name expected}" } 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_using_class_matcher.rb |