Sha256: 0a0c9188bf4256e7a66104e7b08000e871be4e218a69f6860e24fee6df75f0fc
Contents?: true
Size: 726 Bytes
Versions: 1
Compression:
Stored size: 726 Bytes
Contents
# frozen_string_literal: true require "spec_helper" RSpec.describe RSpec::Grape::Entity::DescribeExposure do extend RSpec::Grape::Entity::DescribeExposure let(:entity) { TestEntity } describe_exposure :id do it { is_expected.to be_a Grape::Entity::Exposure::DelegatorExposure } end describe_exposure "id" do it { is_expected.to be_a Grape::Entity::Exposure::DelegatorExposure } end describe_exposure "unknown" do it { is_expected.to be_nil } end describe_exposure "permissions.read" do it { is_expected.to be_a Grape::Entity::Exposure::DelegatorExposure } end describe_exposure "unknown.unknown" do it { expect { __attribute_exposure }.to raise_error NoMethodError } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-grape-entity-0.1.0 | spec/describe_exposure_spec.rb |