Skip to content

Commit

Permalink
Add test that email is sent
Browse files Browse the repository at this point in the history
  • Loading branch information
Katee committed Apr 2, 2017
1 parent 3c0f629 commit e985c2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/controllers/artists_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ def go!
expect { go! }.to change { ArtistSurvey.count }.by(1)
end

it 'sends email' do
expect(UserMailer).to receive(:account_activation)
go!
end

context 'with invalid params' do
let(:artist_attributes) { FactoryGirl.attributes_for(:artist, email: '') }

Expand Down

0 comments on commit e985c2f

Please sign in to comment.