Sha256: d8b94c96ea507556f72f0064b6c9b991699659e6c9d983367a298c75e60bfed9
Contents?: true
Size: 658 Bytes
Versions: 5
Compression:
Stored size: 658 Bytes
Contents
require File.dirname(__FILE__) + '/watirspec/spec_helper' describe "DefaultViewer" do before :all do browser.goto(WatirSpec.files + "/definition_lists.html") end describe ".save" do it "saves the default image to the given path" do fail("don't run specs with CelerityViewer") if browser.viewer != Celerity::DefaultViewer fname = File.expand_path "default_viewer_test.png" default = "#{File.dirname(__FILE__)}/../lib/celerity/resources/no_viewer.png" browser.viewer.save(fname) File.exist?(fname).should be_true File.read(fname).should == File.read(default) File.delete(fname) end end end
Version data entries
5 entries across 5 versions & 3 rubygems