Skip to content

Commit

Permalink
Add a spec verifying that 7035d9d fixes #41
Browse files Browse the repository at this point in the history
  • Loading branch information
jure committed Sep 13, 2014
1 parent aa18a96 commit de1e34e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/lib/solr_query_builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,9 @@ def build_page_block_test_once(params, expected)
"&facet=false&rows=25"
qb.url.should eq(url)
end

it "doesn't raise an exception if a param is nil" do
qb = SolrQueryBuilder.new(everything: nil, title: "testing")
qb.build.should eq("title:testing")
end
end

0 comments on commit de1e34e

Please sign in to comment.