Sha256: b9581123cc35acd2f765b02279e80a6c56349e18d0f6e442894c631364380ee2

Contents?: true

Size: 339 Bytes

Versions: 41

Compression:

Stored size: 339 Bytes

Contents

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

41 entries across 41 versions & 5 rubygems

Version Path
mechanize-2.10.0 test/test_mechanize_file_saver.rb
mechanize-2.9.2 test/test_mechanize_file_saver.rb
mechanize-2.9.1 test/test_mechanize_file_saver.rb
mechanize-2.9.0 test/test_mechanize_file_saver.rb
mechanize-2.8.5 test/test_mechanize_file_saver.rb
mechanize-2.8.4 test/test_mechanize_file_saver.rb
mechanize-2.8.3 test/test_mechanize_file_saver.rb
mechanize-2.8.2 test/test_mechanize_file_saver.rb
mechanize-2.8.1 test/test_mechanize_file_saver.rb
mechanize-2.8.0 test/test_mechanize_file_saver.rb
mechanize-2.7.7 test/test_mechanize_file_saver.rb
husc-0.2.1 vendor/bundle/gems/mechanize-2.7.6/test/test_mechanize_file_saver.rb
husc-0.2.0 vendor/bundle/gems/mechanize-2.7.6/test/test_mechanize_file_saver.rb
husc-0.1.1 vendor/bundle/gems/mechanize-2.7.6/test/test_mechanize_file_saver.rb
husc-0.1.0 vendor/bundle/gems/mechanize-2.7.6/test/test_mechanize_file_saver.rb
mechanize-2.7.6 test/test_mechanize_file_saver.rb
mechanize-2.7.5 test/test_mechanize_file_saver.rb
mechanize-2.7.4 test/test_mechanize_file_saver.rb
mechanize-2.7.3 test/test_mechanize_file_saver.rb
mechanize-2.7.2 test/test_mechanize_file_saver.rb