Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-07-11 22:23:23 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-07-12 18:14:17 +0300
commit3ddcd0d699153363359faf28ab9f53cfd46a1cf9 (patch)
tree296a627fc57b77036c3c3f64fb3ec8b9e53ed7d5 /spec/lib/gitlab/github_import
parentcfd584b2835bc1e15eeac29433593da5f16266f3 (diff)
Remove unnecessary context from GitHub client spec
Diffstat (limited to 'spec/lib/gitlab/github_import')
-rw-r--r--spec/lib/gitlab/github_import/client_spec.rb10
1 files 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