Skip to content

Commit

Permalink
fix i18n specs
Browse files Browse the repository at this point in the history
  • Loading branch information
atd committed Sep 10, 2024
1 parent fb48262 commit a47c6d1
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions spec/i18n_keys_for_resource_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@
RSpec.describe ResourceRegistry::I18nKeysForResource do
subject { described_class.new(resource) }

let(:resource) { instance_double(ResourceRegistry::Resource) }

before do
allow(resource).to receive(:namespace).and_return('TestDomain')
allow(resource).to receive(:slug).and_return('test_resource')
let(:resource) do
ResourceRegistry::Resource.new(
repository_raw: 'TestDomain::Repositories::TestResource',
schema: SchemaRegistry::Schema.new(
name: 'TestResource',
namespace: 'TestNamespace',
properties: []
),
verbs: {}
)
end

describe '#resource_name_key' do
Expand Down

0 comments on commit a47c6d1

Please sign in to comment.