We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb48262 commit a47c6d1Copy full SHA for a47c6d1
spec/i18n_keys_for_resource_spec.rb
@@ -7,11 +7,16 @@
7
RSpec.describe ResourceRegistry::I18nKeysForResource do
8
subject { described_class.new(resource) }
9
10
- let(:resource) { instance_double(ResourceRegistry::Resource) }
11
-
12
- before do
13
- allow(resource).to receive(:namespace).and_return('TestDomain')
14
- 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',
15
+ namespace: 'TestNamespace',
16
+ properties: []
17
+ ),
18
+ verbs: {}
19
+ )
20
end
21
22
describe '#resource_name_key' do
0 commit comments