parent
5de47766a7
commit
c5e2c1ca70
|
@ -2,7 +2,6 @@
|
|||
|
||||
module CycleAnalytics
|
||||
class ProjectLevel < Base
|
||||
|
||||
attr_reader :project, :options
|
||||
|
||||
def initialize(project, options:)
|
||||
|
|
|
@ -8,6 +8,7 @@ describe 'CycleAnalytics#code' do
|
|||
let(:project) { create(:project, :repository) }
|
||||
let(:from_date) { 10.days.ago }
|
||||
let(:user) { create(:user, :admin) }
|
||||
|
||||
subject { CycleAnalytics::ProjectLevel.new(project, options: { from: from_date }) }
|
||||
|
||||
context 'with deployment' do
|
||||
|
|
|
@ -8,6 +8,7 @@ describe 'CycleAnalytics#issue' do
|
|||
let(:project) { create(:project, :repository) }
|
||||
let(:from_date) { 10.days.ago }
|
||||
let(:user) { create(:user, :admin) }
|
||||
|
||||
subject { CycleAnalytics::ProjectLevel.new(project, options: { from: from_date }) }
|
||||
|
||||
generate_cycle_analytics_spec(
|
||||
|
|
|
@ -8,6 +8,7 @@ describe 'CycleAnalytics#plan' do
|
|||
let(:project) { create(:project, :repository) }
|
||||
let(:from_date) { 10.days.ago }
|
||||
let(:user) { create(:user, :admin) }
|
||||
|
||||
subject { CycleAnalytics::ProjectLevel.new(project, options: { from: from_date }) }
|
||||
|
||||
generate_cycle_analytics_spec(
|
||||
|
|
|
@ -8,6 +8,7 @@ describe 'CycleAnalytics#production' do
|
|||
let(:project) { create(:project, :repository) }
|
||||
let(:from_date) { 10.days.ago }
|
||||
let(:user) { create(:user, :admin) }
|
||||
|
||||
subject { CycleAnalytics::ProjectLevel.new(project, options: { from: from_date }) }
|
||||
|
||||
generate_cycle_analytics_spec(
|
||||
|
|
|
@ -8,6 +8,7 @@ describe 'CycleAnalytics#review' do
|
|||
let(:project) { create(:project, :repository) }
|
||||
let(:from_date) { 10.days.ago }
|
||||
let(:user) { create(:user, :admin) }
|
||||
|
||||
subject { CycleAnalytics::ProjectLevel.new(project, options: { from: from_date }) }
|
||||
|
||||
generate_cycle_analytics_spec(
|
||||
|
|
|
@ -8,6 +8,7 @@ describe 'CycleAnalytics#test' do
|
|||
let(:project) { create(:project, :repository) }
|
||||
let(:from_date) { 10.days.ago }
|
||||
let(:user) { create(:user, :admin) }
|
||||
|
||||
subject { CycleAnalytics::ProjectLevel.new(project, options: { from: from_date }) }
|
||||
|
||||
generate_cycle_analytics_spec(
|
||||
|
|
Loading…
Reference in New Issue