Skip to content

Commit cdd7031

Browse files
authored
Merge pull request #56 from github/kpaulisse-spec-api-v1
Rename file so it gets run and add test for `.config` method
2 parents 1c2072f + fe37f3e commit cdd7031

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

spec/octocatalog-diff/tests/api/v1.rb renamed to spec/octocatalog-diff/tests/api/v1_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,12 @@
2020
expect { described_class.catalog_diff(args) }.not_to raise_error
2121
end
2222
end
23+
24+
describe '#config' do
25+
it 'should call CatalogDiff.config with passed-in arguments' do
26+
args = { foo: 'bar' }
27+
expect(OctocatalogDiff::API::V1::Config).to receive(:config).with(args)
28+
expect { described_class.config(args) }.not_to raise_error
29+
end
30+
end
2331
end

0 commit comments

Comments
 (0)