Commit 481f2a90 authored by James Lopez's avatar James Lopez

fix specs

parent 76c555a0
...@@ -2,9 +2,9 @@ require 'spec_helper' ...@@ -2,9 +2,9 @@ require 'spec_helper'
describe Emails::CreateService do describe Emails::CreateService do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:opts) { { email: 'new@email.com' } } let(:opts) { { email: 'new@email.com', user: user} }
subject(:service) { described_class.new(user, user, opts) } subject(:service) { described_class.new(user, opts) }
describe '#execute' do describe '#execute' do
before do before do
......
...@@ -4,7 +4,7 @@ describe Emails::DestroyService do ...@@ -4,7 +4,7 @@ describe Emails::DestroyService do
let!(:user) { create(:user) } let!(:user) { create(:user) }
let!(:email) { create(:email, user: user) } let!(:email) { create(:email, user: user) }
subject(:service) { described_class.new(user, user, email: email.email) } subject(:service) { described_class.new(user, user: user, email: email.email) }
before do before do
stub_licensed_features(extended_audit_events: true) stub_licensed_features(extended_audit_events: true)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment