19ff9d9899
rails_helper.rb's only logic was to require spec_helper.rb.
19 lines
375 B
Ruby
19 lines
375 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
describe 'Cohorts page' do
|
|
before do
|
|
sign_in(create(:admin))
|
|
|
|
stub_application_setting(usage_ping_enabled: true)
|
|
end
|
|
|
|
it 'See users count per month' do
|
|
2.times { create(:user) }
|
|
|
|
visit instance_statistics_cohorts_path
|
|
|
|
expect(page).to have_content("#{Time.now.strftime('%b %Y')} 3 0")
|
|
end
|
|
end
|