lunar 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/lunar/words.rb +1 -1
- data/lunar.gemspec +1 -1
- data/test/test_lunar_search.rb +7 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/lib/lunar/words.rb
CHANGED
data/lunar.gemspec
CHANGED
data/test/test_lunar_search.rb
CHANGED
@@ -115,6 +115,13 @@ class LunarSearchTest < Test::Unit::TestCase
|
|
115
115
|
assert items.map(&:id).include?('1003')
|
116
116
|
end
|
117
117
|
|
118
|
+
should "be able to search by name: 'IPHONE'" do
|
119
|
+
items = Lunar.search(Item, 'IPHONE')
|
120
|
+
|
121
|
+
assert items.map(&:id).include?('1001')
|
122
|
+
assert items.map(&:id).include?('1002')
|
123
|
+
assert items.map(&:id).include?('1003')
|
124
|
+
end
|
118
125
|
|
119
126
|
should "be able to search by name: 'iphone' desc: 'iphone'" do
|
120
127
|
items = Lunar.search(Item, :name => 'iphone', :desc => 'iphone')
|