Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move screenshot_spec to watirspec.

  • Loading branch information...
commit 4a8d308fa2bd5c47b1183b06a4e6ef88785cdc84 1 parent 886ac62
@jarmo jarmo authored
Showing with 0 additions and 25 deletions.
  1. +0 −25 spec/screenshot_spec.rb
View
25 spec/screenshot_spec.rb
@@ -1,25 +0,0 @@
-require File.expand_path("watirspec/spec_helper", File.dirname(__FILE__))
-
-describe Watir::Screenshot do
- describe '#png' do
- it 'gets png representation of screenshot from WebDriver' do
- browser.driver.should_receive(:screenshot_as).with(:png)
- browser.screenshot.png
- end
- end
-
- describe '#base64' do
- it 'gets base64 representation of screenshot from WebDriver' do
- browser.driver.should_receive(:screenshot_as).with(:base64)
- browser.screenshot.base64
- end
- end
-
- describe '#save' do
- it 'saves screenshot to given file' do
- path = "#{Dir.tmpdir}/test.png"
- browser.driver.should_receive(:save_screenshot).with(path)
- browser.screenshot.save(path)
- end
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.