Readme.md in mailstro-0.0.9 vs Readme.md in mailstro-0.0.10
- old
+ new
@@ -31,14 +31,13 @@
## Usage
Sending a basic email.
```ruby
-Mailstro.deliver(
- :to => 'shanon@mailstroapp.com',
- :template_name => :welcome,
- :template_data => {
+Mailstro.deliver(:welcome
+ :to => 'shanon@mailstroapp.com',
+ :data => {
:coupon_code => 'THANKS01'
}
)
```
@@ -51,17 +50,15 @@
```
Verify emails are being sent with simple matchers.
```ruby
-Mailstro.deliver(
- :to => 'shanon@mailstroapp.com',
- :template_name => :welcome,
+Mailstro.deliver(:welcome
+ :to => 'shanon@mailstroapp.com'
)
-Mailstro.should have_delivered(
- :to => 'shanon@mailstroapp.com',
- :template_name => :welcome
+Mailstro.should have_delivered(:welcome,
+ :to => 'shanon@mailstroapp.com'
)
```
## Contributing