Skip to content

Commit b15f2c7

Browse files
committed
Fixup: namespacing typos fixed
1 parent 5589b86 commit b15f2c7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

app/mailers/event_invitation_mailer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def attending(event, member, invitation)
3434

3535
require 'services/event_calendar'
3636
attachments['codebar.ics'] = { mime_type: 'text/calendar',
37-
content: ServicesEventCalendar.new(@event).calendar.to_ical }
37+
content: Services::EventCalendar.new(@event).calendar.to_ical }
3838

3939
subject = "Your spot to #{@event.name} has been confirmed."
4040

spec/features/subscribing_to_newsletter_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
context 'A new member' do
1515
scenario 'is subscribed to the newsletter by default' do
1616
mailing_list = double(:mailing_list)
17-
expect(MailingList).to receive(:new).and_return(mailing_list)
17+
expect(Services::MailingList).to receive(:new).and_return(mailing_list)
1818
expect(mailing_list).to receive(:subscribe).with('[email protected]', 'Jane', 'Doe')
1919

2020
visit new_member_path
@@ -33,7 +33,7 @@
3333

3434
scenario 'can opt out of the newsletter' do
3535
mailing_list = double(:mailing_list)
36-
expect(MailingList).to receive(:new).and_return(mailing_list)
36+
expect(Services::MailingList).to receive(:new).and_return(mailing_list)
3737
expect(mailing_list).to receive(:unsubscribe).with('[email protected]')
3838

3939
visit new_member_path
@@ -60,7 +60,7 @@
6060
login member
6161

6262
mailing_list = double(:mailing_list)
63-
expect(MailingList).to receive(:new).and_return(mailing_list)
63+
expect(Services::MailingList).to receive(:new).and_return(mailing_list)
6464
expect(mailing_list).to receive(:subscribe)
6565

6666
visit subscriptions_path
@@ -75,7 +75,7 @@
7575
login member
7676

7777
mailing_list = double(:mailing_list)
78-
expect(MailingList).to receive(:new).and_return(mailing_list)
78+
expect(Services::MailingList).to receive(:new).and_return(mailing_list)
7979
expect(mailing_list).to receive(:unsubscribe)
8080

8181
visit subscriptions_path
@@ -90,15 +90,15 @@
9090
login member
9191

9292
mailing_list = double(:mailing_list)
93-
expect(MailingList).to receive(:new).and_return(mailing_list)
93+
expect(Services::MailingList).to receive(:new).and_return(mailing_list)
9494
expect(mailing_list).to receive(:subscribe)
9595

9696
visit subscriptions_path
9797
click_on 'Subscribe to newsletter'
9898

9999
expect(page).to have_content('You have subscribed to codebar\'s newsletter')
100100

101-
expect(MailingList).to receive(:new).and_return(mailing_list)
101+
expect(Services::MailingList).to receive(:new).and_return(mailing_list)
102102
expect(mailing_list).to receive(:unsubscribe)
103103

104104
click_on 'Unsubscribe from newsletter'

0 commit comments

Comments
 (0)