Sha256: df30a999ca0017514bf804a4022ed863920e5b9df9de5866ce9665015f2efd4b

Contents?: true

Size: 369 Bytes

Versions: 5

Compression:

Stored size: 369 Bytes

Contents

# frozen_string_literal: true
require 'mechanize/test_case'

class TestMechanizeFileSaver < Mechanize::TestCase

  def setup
    super

    @uri = URI 'http://example'
    @io = StringIO.new 'hello world'
  end

  def test_initialize
    in_tmpdir do
      Mechanize::FileSaver.new @uri, nil, @io, 200

      assert File.exist? 'example/index.html'
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mechanize-2.12.2 test/test_mechanize_file_saver.rb
mechanize-2.12.1 test/test_mechanize_file_saver.rb
mechanize-2.12.0 test/test_mechanize_file_saver.rb
mechanize-2.11.0 test/test_mechanize_file_saver.rb
mechanize-2.10.1 test/test_mechanize_file_saver.rb