ryana-inequal_opportunity 0.1.4 → 0.1.5
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.
- data/lib/inequal_opportunity.rb +3 -2
- data/test/inequal_opportunity_test.rb +14 -0
- metadata +3 -2
data/lib/inequal_opportunity.rb
CHANGED
@@ -138,6 +138,20 @@ class InequalOpportunityTest < Test::Unit::TestCase
|
|
138
138
|
assert_equal wrapped, ActiveRecord::Inequality::NotEqual.new(nil)
|
139
139
|
end
|
140
140
|
|
141
|
+
should "have a different operator when calling ne w/ true" do
|
142
|
+
wrapped = ne(true)
|
143
|
+
assert_equal wrapped.operator, 'IS NOT'
|
144
|
+
assert_equal wrapped, ActiveRecord::Inequality::NotEqual.new(true)
|
145
|
+
end
|
146
|
+
|
147
|
+
should "have a different operator when calling ne w/ false" do
|
148
|
+
wrapped = ne(false)
|
149
|
+
assert_equal wrapped.operator, 'IS NOT'
|
150
|
+
assert_equal wrapped, ActiveRecord::Inequality::NotEqual.new(false)
|
151
|
+
end
|
152
|
+
|
153
|
+
|
154
|
+
|
141
155
|
should "have like" do
|
142
156
|
wrapped = like('ryan')
|
143
157
|
assert_equal wrapped.operator, 'LIKE'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ryana-inequal_opportunity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Angilly
|
@@ -30,6 +30,7 @@ files:
|
|
30
30
|
- README
|
31
31
|
has_rdoc: true
|
32
32
|
homepage: http://github.com/ryana/inequal_opportunity
|
33
|
+
licenses:
|
33
34
|
post_install_message:
|
34
35
|
rdoc_options:
|
35
36
|
- --charset=UTF-8
|
@@ -50,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
51
|
requirements: []
|
51
52
|
|
52
53
|
rubyforge_project:
|
53
|
-
rubygems_version: 1.
|
54
|
+
rubygems_version: 1.3.5
|
54
55
|
signing_key:
|
55
56
|
specification_version: 2
|
56
57
|
summary: Adds mergable, stackable inequality statements to ActiveRecord conditions
|