Sha256: f3a28a0fbd3ca439396503a872629818c8a3615df265a9df8e9417b6a8e3aa81

Contents?: true

Size: 514 Bytes

Versions: 1

Compression:

Stored size: 514 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

RSpec.describe RSpec::Grape::Entity::Matchers::OverrideExposureMatcher do
  include RSpec::Grape::Entity::Matchers::OverrideExposureMatcher

  let(:entity) { TestEntity }

  context "when overriding" do
    subject(:exposure) { entity.find_exposure :permissions }
    it { is_expected.to override_exposure }
  end

  context "when not overriding" do
    subject(:exposure) { entity.find_exposure :id }
    it { is_expected.not_to override_exposure }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-grape-entity-0.1.0 spec/matchers/override_exposure_matcher_spec.rb