Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
synion committed Feb 17, 2022
1 parent bbab9a0 commit daefc45
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,3 +379,14 @@ MandrillMailer.configure do |config|
}
end
```

## Rspec matcher

# In spec/spec_helper.rb:
```ruby
RSpec.configure do |config|
# ...
require "mandrill_mailer/rspec_helper"
config.include MandrillMailer::RSpecHelper
end
```
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,14 @@
# to: '[email protected]',
# global_variables: {
# 'FNAME' => 'John',
# 'EVENT_TITLE' => 'Super Series',
# 'EVENT_HREF' => event_url(event, auth_token: auth_token, host: host),
# 'EVENTS_URL' => city_url(event.city, auth_token: auth_token, host: host),
# 'START_TIME' => '10:45am EST / 7:45am PST',
# 'VENUE' => 'Midtown Venue',
# 'START_DATE' => 'Wednesday, 01/10/2018',
# 'NEXT_EVENT_DATE' => nil,
# 'MEMBER_FULL_NAME' => 'John Gates',
# 'MEMBER_EMAIL' => '[email protected]'
# }
#)
# )
#
RSpec::Matchers.define :mandrill_email do |expected|
class MailerContains < RSpec::Matchers::BuiltIn::BaseMatcher
Expand Down

0 comments on commit daefc45

Please sign in to comment.