Readme.md in mailstro-0.0.7 vs Readme.md in mailstro-0.0.8
- old
+ new
@@ -43,24 +43,24 @@
```
Sending an email to a list of users, with subscription management.
```ruby
-Mailstro.subscribe('jack@mailstroapp.com', :build_watchers, project_id)
+Mailstro.subscribe('shanon@mailstroapp.com', :build_watchers, project_id)
Mailstro.deliver(
:to => [:build_watchers, project_id]
:template_name => :build_failure,
:template_data => {
:commit => '575ca555c23eca098202'
}
)
-Mailstro.unsubscribe('jack@mailstroapp.com', :build_watchers, project_id)
+Mailstro.unsubscribe('shanon@mailstroapp.com', :build_watchers, project_id)
```
-## RSpec Test Mode
+## RSpec
Require the mailstro spec helper to automatically enable test mode.
```ruby
require 'mailsto/rspec'
@@ -73,14 +73,22 @@
:to => 'shanon@mailstroapp.com',
:template_name => :welcome,
)
Mailstro.should have_delivered(:welcome)
+Mailstro.should have_delivered(
+ :to => 'shanon@mailstroapp.com',
+ :template_name => :welcome
+)
Mailstro.should have_subscribed('a@a.com', :watchers, 2)
Mailstro.should have_unsubscribed('a@a.com', :watchers, 2)
-```
+Mailstro.should have_delivered(
+ :to => [:build_watchers, project_name],
+ :template_name => :build_failed
+)
+```
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)