summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2016-07-19 18:37:33 +0100
committerGitHub <noreply@github.com>2016-07-19 18:37:33 +0100
commit4c8bf05a397a2954db2ec519299097e6dbd73d3e (patch)
treec583110d264fffb143648eb257b8234700d42c10 /spec
parent9d235fd19641592ec987f1c66c88841f23dfd11d (diff)
parent06d3898d307168145130a3603a2121be6b4e19b3 (diff)
downloadchef-zero-4c8bf05a397a2954db2ec519299097e6dbd73d3e.tar.gz
Merge pull request #175 from andrewdotn/master
Fix attempted fall-through in case statement.
Diffstat (limited to 'spec')
-rw-r--r--spec/search_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/search_spec.rb b/spec/search_spec.rb
index df0522c..54392a6 100644
--- a/spec/search_spec.rb
+++ b/spec/search_spec.rb
@@ -24,6 +24,10 @@ describe ChefZero::Solr::SolrParser do
search_for('foo:[a TO c]').size.should eq(1)
end
+ it "handles -" do
+ search_for('-foo:a').size.should eq(1)
+ end
+
it "handles wildcard ranges" do
search_for('foo:[* TO c]').size.should eq(1)
search_for('foo:[c TO *]').size.should eq(1)