Remove unnecessary context from GitHub client spec

parent cfd584b2
......@@ -62,12 +62,10 @@ describe Gitlab::GithubImport::Client, lib: true do
end
end
context 'when rate limit is disabled' do
it 'does not raise error' do
stub_request(:get, /api.github.com/)
allow(client.api).to receive(:rate_limit!).and_raise(Octokit::NotFound)
it 'does not raise error when rate limit is disabled' do
stub_request(:get, /api.github.com/)
allow(client.api).to receive(:rate_limit!).and_raise(Octokit::NotFound)
expect { client.issues }.not_to raise_error
end
expect { client.issues }.not_to raise_error
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment