Files
osem/spec/models/comment_spec.rb
James Mason 516e53d9df Use chartkick globally
* 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
2018-12-30 16:57:22 -08:00

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