smarter_listing 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,32 +2,27 @@ require 'test_helper'
2
2
 
3
3
  class SmarterListingLoaderTest < ActiveSupport::TestCase
4
4
 
5
+ setup do
6
+ ListingsController.smarter_listing
7
+ end
8
+
5
9
  test 'smarter listing is loaded' do
6
10
  assert_respond_to ActionController::Base, :smarter_listing
7
11
  end
8
12
 
9
13
  test 'controller extensions are loaded' do
10
- assert_not_includes ListingsController.included_modules, SmartListing::Helper::ControllerExtensions
11
- assert_not_includes ListingsController.included_modules, SmarterListing::ControllerExtension
12
- ListingsController.smarter_listing
13
14
  assert_includes ListingsController.included_modules, SmartListing::Helper::ControllerExtensions
14
15
  assert_includes ListingsController.included_modules, SmarterListing::ControllerExtension
15
16
  end
16
17
 
17
18
  test 'helper methods included' do
18
- ListingsController.smarter_listing
19
19
  methods = SmartListing::Helper.instance_methods + SmarterListing::Helper.instance_methods
20
20
  methods.each do |method|
21
21
  assert_includes ListingsController.helpers.methods, method
22
22
  end
23
23
  end
24
24
 
25
- test 'attribute filter_parameter' do
26
- assert_not_includes ListingsController.instance_variables, :@filter_parameter
27
- end
28
-
29
25
  test 'the default filter_parameter' do
30
- ListingsController.smarter_listing
31
26
  assert_includes ListingsController.instance_variables, :@filter_parameter
32
27
  assert_equal :filter, ListingsController.instance_variable_get(:@filter_parameter)
33
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smarter_listing
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
  - Michael Sprauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-10 00:00:00.000000000 Z
11
+ date: 2014-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3'
47
+ version: '1'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3'
54
+ version: '1'
55
55
  description: DRY improvements to the fine gem "smart_listing". See http://showcase.sology.eu/smart_listing
56
56
  for more details
57
57
  email:
@@ -88,7 +88,7 @@ files:
88
88
  - test/dummy/app/controllers/listings_controller.rb
89
89
  - test/dummy/app/helpers/application_helper.rb
90
90
  - test/dummy/app/models/listing.rb
91
- - test/dummy/app/views/layouts/application.html.erb
91
+ - test/dummy/app/views/layouts/default.html.erb
92
92
  - test/dummy/app/views/listings/_form.html.erb
93
93
  - test/dummy/app/views/listings/_listing.html.erb
94
94
  - test/dummy/app/views/listings/_table_header.html.erb
@@ -121,6 +121,12 @@ files:
121
121
  - test/dummy/db/test.sqlite3
122
122
  - test/dummy/log/development.log
123
123
  - test/dummy/log/test.log
124
+ - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
125
+ - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
126
+ - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
127
+ - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
128
+ - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
129
+ - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
124
130
  - test/fixtures/listings.yml
125
131
  - test/helpers/smarter_listing_loader_test.rb
126
132
  - test/test_helper.rb
@@ -155,7 +161,7 @@ test_files:
155
161
  - test/dummy/app/views/listings/_listing.html.erb
156
162
  - test/dummy/app/views/listings/index.html.erb
157
163
  - test/dummy/app/views/listings/_table_header.html.erb
158
- - test/dummy/app/views/layouts/application.html.erb
164
+ - test/dummy/app/views/layouts/default.html.erb
159
165
  - test/dummy/app/helpers/application_helper.rb
160
166
  - test/dummy/app/models/listing.rb
161
167
  - test/dummy/app/controllers/application_controller.rb
@@ -179,6 +185,12 @@ test_files:
179
185
  - test/dummy/config/database.yml
180
186
  - test/dummy/config/secrets.yml
181
187
  - test/dummy/README.rdoc
188
+ - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
189
+ - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
190
+ - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
191
+ - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
192
+ - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
193
+ - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
182
194
  - test/dummy/config.ru
183
195
  - test/dummy/bin/bundle
184
196
  - test/dummy/bin/rails