Permalink
Browse files

Fix test suite

  • Loading branch information...
1 parent 07cc163 commit 99000f61f412d86bef50f634441cdb26e795bab4 @bcardarella bcardarella committed Jan 4, 2013
Showing with 1 addition and 13 deletions.
  1. +1 −1 lib/capybara/node/email.rb
  2. +0 −12 spec/node/email_spec.rb
@@ -46,7 +46,7 @@ def save_page(path = nil)
#
# @param [String] path The path to where it should be saved [optional]
#
- def save_and_open_page(file_name = nil)
+ def save_and_open(file_name = nil)
require 'launchy'
Launchy.open(save_page(file_name))
rescue LoadError
View
@@ -57,16 +57,4 @@
email.from.should include 'test@example.com'
end
end
-
- describe '#save_and_open' do
- before do
- message.body = 'Test message'
- ::Capybara.stubs(:save_and_open_page)
- end
-
- it 'delegates to Capybara.save_and_open_page' do
- email.save_and_open
- Capybara.should have_received(:save_and_open_page).with('Test message')
- end
- end
end

0 comments on commit 99000f6

Please sign in to comment.