Sha256: 5a9af5399df923bab3009ca7ba4081c440d39569589c009fce201042edc9fedb

Contents?: true

Size: 532 Bytes

Versions: 10

Compression:

Stored size: 532 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper'

class MechanizeExtensionsTest < Test::Unit::TestCase
  def test_should_raise_exception_if_selector_cannot_be_found
    email    = "far@far.away"
    password = "password"

    mechanize = Mechanize.new
    VCR.use_cassette("AmazonReportScraper/with_good_login/find_reports/reports_to_request") do
      mechanize.get "https://sellercentral.amazon.com/gp/homepage.html"
      assert_raises Nokogiri::MissingElement do
        mechanize.page.search! "#foo"
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
compactor-0.3.12 test/mechanize_extensions_test.rb
compactor-0.3.11 test/mechanize_extensions_test.rb
compactor-0.3.8 test/mechanize_extensions_test.rb
compactor-0.3.5 test/mechanize_extensions_test.rb
compactor-0.3.4 test/mechanize_extensions_test.rb
compactor-0.3.3 test/mechanize_extensions_test.rb
compactor-0.2.4 test/mechanize_extensions_test.rb
compactor-0.2.3 test/mechanize_extensions_test.rb
compactor-0.1.6 test/mechanize_extensions_test.rb
compactor-0.1.2 test/mechanize_extensions_test.rb