summaryrefslogtreecommitdiff
path: root/spec/controllers/projects/graphs_controller_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers/projects/graphs_controller_spec.rb')
-rw-r--r--spec/controllers/projects/graphs_controller_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/controllers/projects/graphs_controller_spec.rb b/spec/controllers/projects/graphs_controller_spec.rb
index 12cef6bea09..49def8f80b0 100644
--- a/spec/controllers/projects/graphs_controller_spec.rb
+++ b/spec/controllers/projects/graphs_controller_spec.rb
@@ -80,6 +80,15 @@ RSpec.describe Projects::GraphsController do
expect(assigns[:daily_coverage_options]).to be_nil
end
end
+
+ it_behaves_like 'tracking unique visits', :charts do
+ before do
+ sign_in(user)
+ end
+
+ let(:request_params) { { namespace_id: project.namespace.path, project_id: project.path, id: 'master' } }
+ let(:target_id) { 'p_analytics_repo' }
+ end
end
context 'when languages were previously detected' do