squint 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -100,4 +100,11 @@ class SquintTest < ActiveSupport::TestCase
100
100
  assert_equal Post.all.count - 1, reln.count, reln.to_sql
101
101
  end
102
102
  end
103
+ test "handles string parameters" do
104
+ reln = Post.where(storext_jsonb_attributes: { "jsonb_friend_count": 11 }).
105
+ where("posts.title = ?", 'With Storext is aweesome not default title')
106
+ assert_nothing_raised do
107
+ assert_equal 1, reln.count
108
+ end
109
+ end
103
110
  end
metadata CHANGED
@@ -1,10 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: squint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David H. Wilkins
8
+ - Justin Licata
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
@@ -42,6 +43,7 @@ description: Use rails semantics to search keys and values inside PostgreSQL jso
42
43
  json and hstore columns. Compatible with StoreXT attributes.
43
44
  email:
44
45
  - dwilkins@proctoru.com
46
+ - jlicata@proctoru.com
45
47
  executables: []
46
48
  extensions: []
47
49
  extra_rdoc_files: []