query_string_filter 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/filter.treetop +1 -1
- data/query_string_filter.gemspec +1 -1
- data/spec/query_string_filter_spec.rb +12 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/filter.treetop
CHANGED
data/query_string_filter.gemspec
CHANGED
@@ -12,6 +12,12 @@ describe "QueryStringFilter" do
|
|
12
12
|
@filter.parse("something")
|
13
13
|
}.should raise_error(QueryStringFilter::ParseError)
|
14
14
|
end
|
15
|
+
|
16
|
+
it "no quotes or connectives" do
|
17
|
+
lambda {
|
18
|
+
@filter.parse("name=David James")
|
19
|
+
}.should raise_error(QueryStringFilter::ParseError)
|
20
|
+
end
|
15
21
|
end
|
16
22
|
|
17
23
|
describe "keys" do
|
@@ -26,6 +32,12 @@ describe "QueryStringFilter" do
|
|
26
32
|
:foo => "bar camp"
|
27
33
|
}
|
28
34
|
end
|
35
|
+
|
36
|
+
it "value with http://" do
|
37
|
+
@filter.parse("url = http://cnn.com").should == {
|
38
|
+
:url => "http://cnn.com"
|
39
|
+
}
|
40
|
+
end
|
29
41
|
end
|
30
42
|
|
31
43
|
describe "basic operators" do
|