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

Version Path
gnawrnip-0.5.0 spec/spec_helper.rb
gnawrnip-0.4.0 spec/spec_helper.rb
gnawrnip-0.3.2 spec/spec_helper.rb
gnawrnip-0.3.1 spec/spec_helper.rb
gnawrnip-0.3.0 spec/spec_helper.rb
gnawrnip-0.2.5 spec/spec_helper.rb
gnawrnip-0.2.4 spec/spec_helper.rb
gnawrnip-0.2.3 spec/spec_helper.rb
gnawrnip-0.2.2 spec/spec_helper.rb
gnawrnip-0.2.1 spec/spec_helper.rb
gnawrnip-0.2.0 spec/spec_helper.rb
gnawrnip-0.1.3 spec/spec_helper.rb
gnawrnip-0.1.2 spec/spec_helper.rb
gnawrnip-0.1.1 spec/spec_helper.rb