Sha256: 52eeb62a52914a437d0ec1ba5453e9e9d62e860ade1541cee7204c87af9c95fc
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
# frozen_string_literal: true require "spec_helper" RSpec.describe RSpec::Grape::Entity::Matchers::HaveKeyMatcher do include RSpec::Grape::Entity::Matchers::HaveKeyMatcher let(:entity) { TestEntity } context "when alias is not defined" do subject(:exposure) { entity.find_exposure :id } it { is_expected.to have_key :id } it { is_expected.not_to have_key :external_id } end context "when alias is defined" do subject(:exposure) { entity.find_exposure :record_status } it { is_expected.to have_key :status } it { is_expected.not_to have_key :record_status } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-grape-entity-0.1.0 | spec/matchers/have_key_matcher_spec.rb |