Sha256: d08f80ebf34e237a5cacde0be59d26a8c1b55bd565d5a5d26391adb3dedba22a
Contents?: true
Size: 663 Bytes
Versions: 10
Compression:
Stored size: 663 Bytes
Contents
require File.expand_path("../watirspec/spec_helper", __FILE__) 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
10 entries across 10 versions & 4 rubygems