Sha256: 1e2310412eaa686faa50d9a50fc8621507d09adfb4e0f7fca76cb2f3499de2af

Contents?: true

Size: 417 Bytes

Versions: 2

Compression:

Stored size: 417 Bytes

Contents

require 'test_helper'

class SearchControllerTest < ActionController::TestCase

  vcr_test "should return a summon searcher" do
    get :index, q: 'printing'
    assert assigns(:summon)
  end

  test "should redirect to link resolver" do
    get :index, q: 'doi:10.1002/0470841559.ch1'
    assert_redirected_to 'http://js8lb8ft5y.search.serialssolutions.com/criteriarefiner/?SS_doi=10.1002/0470841559.ch1'
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
quick_search-core-0.0.1 test/controllers/search_controller_test.rb
quick_search-core-0.0.1.test test/controllers/search_controller_test.rb