capybara-email 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,7 +20,7 @@ module Capybara::Email::DSL
20
20
  #
21
21
  # @return [Array<Mail::Message>]
22
22
  def emails_sent_to(recipient)
23
- self.current_emails = all_emails.select { |email| email.to.include?(recipient) }.map do |email|
23
+ self.current_emails = all_emails.select { |email| [email.to, email.cc, email.bcc].flatten.compact.include?(recipient) }.map do |email|
24
24
  driver = Capybara::Email::Driver.new(email)
25
25
  Capybara::Node::Email.new(Capybara.current_session, driver)
26
26
  end
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Email
3
- VERSION = '2.0.0'
3
+ VERSION = '2.0.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-email
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-15 00:00:00.000000000 Z
12
+ date: 2012-12-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mail
@@ -138,7 +138,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
138
138
  version: '0'
139
139
  segments:
140
140
  - 0
141
- hash: 4038924464846887669
141
+ hash: -1760701146044086480
142
142
  required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  none: false
144
144
  requirements:
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  segments:
149
149
  - 0
150
- hash: 4038924464846887669
150
+ hash: -1760701146044086480
151
151
  requirements: []
152
152
  rubyforge_project:
153
153
  rubygems_version: 1.8.23