Sha256: 7085642ec4d7bee44784bfb1363d249c2eebb3a57b6146f80addac04d37f4c18

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

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

  let(:entity) { TestEntity }

  context "when using a represent entity" do
    subject(:exposure) { entity.find_exposure :user }
    it { is_expected.to be_using_class UserEntity }
    it { is_expected.not_to be_using_class TestEntity }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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