Registry / testing / email-spec

email-spec

JSON →
library2.3.1rbrubygemsunverified

Easily test email in RSpec, Cucumber, and MiniTest.

gem install email_spec
INSTALL
IMPORT
SIG · EMAIL-SPEC
E
email-spec
testingrubyv2.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

EmailSpec
✓ require 'email_spec'

Includes helpers and matchers for testing email delivery.

require "email_spec" # In RSpec: RSpec.configure do |config| config.include(EmailSpec::Helpers) config.include(EmailSpec::Matchers) end describe "Mailer" do it "sends a welcome email" do email = Mailer.welcome.deliver_now expect(email).to deliver_to("user@example.com") end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.3.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Amazon
1
Resources
email-spec — gem install email-spec · libregistry