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:
authorStan Hu <stanhu@gmail.com>2019-07-24 17:42:45 +0300
committerStan Hu <stanhu@gmail.com>2019-07-24 18:57:42 +0300
commitd7eadcc0f30d3bd005f9dfb160dd0a460b3a8f56 (patch)
tree190331c52fcdfd555367ebb729098db3df2b4fa0 /spec/lib/peek
parentc02c83fa9b63601a0a4cb8ed78311d9461e70e35 (diff)
Use a base class for Peek views
Introduce a `DetailedView` base class, which is inherited by the Gitaly, Redis, and Rugged views. This reduces code duplication.
Diffstat (limited to 'spec/lib/peek')
-rw-r--r--spec/lib/peek/views/rugged_spec.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/spec/lib/peek/views/rugged_spec.rb b/spec/lib/peek/views/rugged_spec.rb
index 715b360953c..8bf996fc6bc 100644
--- a/spec/lib/peek/views/rugged_spec.rb
+++ b/spec/lib/peek/views/rugged_spec.rb
@@ -27,9 +27,6 @@ describe Peek::Views::Rugged, :request_store do
args: [project.repository.raw, 'refs/heads/master'],
duration: 0.456)
- expect(subject.duration).to be_within(0.00001).of(1.234)
- expect(subject.calls).to eq(2)
-
results = subject.results
expect(results[:calls]).to eq(2)
expect(results[:duration]).to eq('1234.00ms')