searcher 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- searcher (0.0.1)
4
+ searcher (0.0.2)
5
5
  activerecord (~> 3.0.0)
6
6
 
7
7
  GEM
@@ -19,7 +19,7 @@ module Searcher
19
19
  end
20
20
  end
21
21
 
22
- result
22
+ result || klass.all
23
23
  end
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module Searcher
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
Binary file
@@ -18,4 +18,10 @@ describe Searcher do
18
18
  end
19
19
  end
20
20
 
21
+ context "undefined label search" do
22
+ subject { Ticket.search("undefined:true") }
23
+ it "returns all the records" do
24
+ search_results.should eql(Ticket.all)
25
+ end
26
+ end
21
27
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: searcher
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors: []
13
13