Consolidate shared a scope example parts into one attributes check (#32046)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2024-09-25 07:56:42 +00:00
1 parent c3b6a7a297
commit c2ef83ea4c
1 file changed
+7 -10
+7 -10
View File
@@ -7,16 +7,13 @@ RSpec.describe ScopeTransformer do
subject { described_class.new.apply(ScopeParser.new.parse(input)) }
shared_examples 'a scope' do |namespace, term, access|
it 'parses the term' do
expect(subject.term).to eq term
end
it 'parses the namespace' do
expect(subject.namespace).to eq namespace
end
it 'parses the access' do
expect(subject.access).to eq access
it 'parses the attributes' do
expect(subject)
.to have_attributes(
term: term,
namespace: namespace,
access: access
)
end
end