searchable_models 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,5 +10,5 @@ component_two:
10
10
 
11
11
  component_foo:
12
12
  name: Component foo
13
- serial: 1234567890987654321
13
+ serial: 1234567654321234567890
14
14
  provider: provider_foo
@@ -25,6 +25,10 @@ class CarTest < ActiveSupport::TestCase
25
25
  assert_results(Car.search(:component_id => components(:component_foo)))
26
26
  end
27
27
 
28
+ test "search car with through on any field" do
29
+ assert_results(Car.search(:serial => components(:component_foo).serial))
30
+ end
31
+
28
32
  test "search car with deep through" do
29
33
  assert_results(Car.search(:provider_id => providers(:provider_foo)))
30
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: searchable_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Fernandez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-14 00:00:00.000000000 Z
11
+ date: 2014-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -123,7 +123,6 @@ files:
123
123
  - lib/searchable_models.rb
124
124
  - lib/searchable_models/searchable.rb
125
125
  - lib/searchable_models/version.rb
126
- - lib/tasks/searchable_models_tasks.rake
127
126
  - test/dummy/README.rdoc
128
127
  - test/dummy/Rakefile
129
128
  - test/dummy/app/assets/javascripts/application.js
@@ -158,6 +157,7 @@ files:
158
157
  - test/dummy/config/locales/en.yml
159
158
  - test/dummy/config/routes.rb
160
159
  - test/dummy/config/secrets.yml
160
+ - test/dummy/db/development.sqlite3
161
161
  - test/dummy/db/migrate/20141113130904_create_cars.rb
162
162
  - test/dummy/db/migrate/20141113142341_create_groups.rb
163
163
  - test/dummy/db/migrate/20141113142350_add_group_id_to_cars.rb
@@ -172,6 +172,7 @@ files:
172
172
  - test/dummy/db/migrate/20141114130703_add_car_translations.rb
173
173
  - test/dummy/db/schema.rb
174
174
  - test/dummy/db/test.sqlite3
175
+ - test/dummy/log/development.log
175
176
  - test/dummy/log/test.log
176
177
  - test/dummy/public/404.html
177
178
  - test/dummy/public/422.html
@@ -243,6 +244,7 @@ test_files:
243
244
  - test/dummy/config/routes.rb
244
245
  - test/dummy/config/secrets.yml
245
246
  - test/dummy/config.ru
247
+ - test/dummy/db/development.sqlite3
246
248
  - test/dummy/db/migrate/20141113130904_create_cars.rb
247
249
  - test/dummy/db/migrate/20141113142341_create_groups.rb
248
250
  - test/dummy/db/migrate/20141113142350_add_group_id_to_cars.rb
@@ -257,6 +259,7 @@ test_files:
257
259
  - test/dummy/db/migrate/20141114130703_add_car_translations.rb
258
260
  - test/dummy/db/schema.rb
259
261
  - test/dummy/db/test.sqlite3
262
+ - test/dummy/log/development.log
260
263
  - test/dummy/log/test.log
261
264
  - test/dummy/public/404.html
262
265
  - test/dummy/public/422.html
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :searchable_models do
3
- # # Task goes here
4
- # end