Sha256: 5c7cdb27e299f1113c80b4eb3372854ada9658cb0b117ed1dc1555d19c507e9a
Contents?: true
Size: 553 Bytes
Versions: 14
Compression:
Stored size: 553 Bytes
Contents
require 'tempfile' require 'capybara' require 'coveralls' Coveralls.wear! require 'gnawrnip' module GnawrnipTest def self.image(data) tempfile = Tempfile.new('gnarwnip_test') tempfile.write(data) tempfile.rewind tempfile end class Session def save_screenshot(file_path) File.open(file_path, 'w') do |fp| fp.print 'screenshot' end end def method_missing(name, *args, &block) # nooooooop end end end module Capybara def self.current_session GnawrnipTest::Session.new end end
Version data entries
14 entries across 14 versions & 1 rubygems