Skip to content

Commit

Permalink
Merge pull request #56 from github/kpaulisse-spec-api-v1
Browse files Browse the repository at this point in the history
Rename file so it gets run and add test for `.config` method
  • Loading branch information
kpaulisse committed Jan 10, 2017
2 parents 1c2072f + fe37f3e commit cdd7031
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@
expect { described_class.catalog_diff(args) }.not_to raise_error
end
end

describe '#config' do
it 'should call CatalogDiff.config with passed-in arguments' do
args = { foo: 'bar' }
expect(OctocatalogDiff::API::V1::Config).to receive(:config).with(args)
expect { described_class.config(args) }.not_to raise_error
end
end
end

0 comments on commit cdd7031

Please sign in to comment.