From 3ddcd0d699153363359faf28ab9f53cfd46a1cf9 Mon Sep 17 00:00:00 2001 From: Douglas Barbosa Alexandre Date: Mon, 11 Jul 2016 16:23:23 -0300 Subject: [PATCH] Remove unnecessary context from GitHub client spec --- spec/lib/gitlab/github_import/client_spec.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/spec/lib/gitlab/github_import/client_spec.rb b/spec/lib/gitlab/github_import/client_spec.rb index efce10dbf15..613c47d55f1 100644 --- a/spec/lib/gitlab/github_import/client_spec.rb +++ b/spec/lib/gitlab/github_import/client_spec.rb @@ -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 -- GitLab