Sha256: 898c5d38b9089a2196a699f8234ef5480900a764a48e9586d6cf348afc54342d
Contents?: true
Size: 773 Bytes
Versions: 2
Compression:
Stored size: 773 Bytes
Contents
require 'test_helper' class FaqSearcherTest < ActiveSupport::TestCase setup do @faq = QuickSearch::FaqSearcher.new(HTTPClient.new, 'printing', 3) end test "should have http client, query, and per_page" do assert @faq.http.is_a? HTTPClient assert @faq.q == 'printing' assert_equal 3, @faq.per_page end # vcr_test "should have raw result", 'searches', cassette: 'faq_printing' do # raw_results = @faq.search # assert raw_results.is_a?(Sequel::MySQL::Dataset) # end # vcr_test "should have parsed results", 'searches', cassette: 'faq_printing' do # @faq.search # parsed_results = @faq.results # assert parsed_results.first.title.include?('Print Quota') # assert parsed_results.first.link.include?('274') # end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quick_search-core-0.0.1 | test/searcher/faq_test.rb |
quick_search-core-0.0.1.test | test/searcher/faq_test.rb |