mirror of
https://github.com/openSUSE/osem.git
synced 2026-01-21 20:38:06 -05:00
* Clean up legacy charting imports * Update existing donut and line charts * Create helpers for parsing out existing chart data * Move chart partials to a more common path
17 lines
326 B
Ruby
17 lines
326 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
describe Commercial do
|
|
|
|
describe '.find_since_last_login' do
|
|
let!(:user) do
|
|
create(:user, last_sign_in_at: nil)
|
|
end
|
|
|
|
it 'returns none if last_sign_in_at is nil' do
|
|
expect(Comment.find_since_last_login(user)).to eq(Comment.none)
|
|
end
|
|
end
|
|
end
|