mirror of
https://github.com/chenasraf/snpr.git
synced 2026-05-18 01:39:01 +00:00
* Passwords now need to be 8 characters long (new default in authlogic). * To login to the Sidekiq web interface, log in to opensnp.org, if you have the `admin` flag set, you will find it at the usual place. * I finally found out why Rubocop didn't complain about the frozen string literal pragma missing and added all of them. * Rubocop complained about keyword arguments, which is only relevant for Rails 5, so I disabled the cop. * I removed the `inherit_from: .rubocop_todo.yml` from `.rubocop.yml`, so Hound does complain about **all** the issues. I also added a few tasks for running Rubocop.
19 lines
541 B
Ruby
19 lines
541 B
Ruby
# frozen_string_literal: true
|
|
describe Parsing do
|
|
describe '#notify_user' do
|
|
let(:mail) { double('mail') }
|
|
let(:genotype) { double('genotype', id: 1) }
|
|
let(:stats) { { foos: 7 } }
|
|
|
|
it 'sends an email to the user' do
|
|
subject.instance_variable_set(:@stats, stats)
|
|
subject.instance_variable_set(:@genotype, genotype)
|
|
expect(UserMailer).to receive(:finished_parsing).with(genotype.id, stats)
|
|
.and_return(mail)
|
|
expect(mail).to receive(:deliver_later)
|
|
|
|
subject.notify_user
|
|
end
|
|
end
|
|
end
|