smarter_listing 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class SmarterListingLoaderTest < ActiveSupport::TestCase
3
+ class SmarterListingLoader < ActiveSupport::TestCase
4
4
 
5
5
  setup do
6
6
  ListingsController.smarter_listing
@@ -0,0 +1,14 @@
1
+ require "test_helper"
2
+
3
+ describe "Workflow", :capybara do
4
+ it "has index" do
5
+ visit listings_path
6
+ page.has_css? '.count', text: '1'
7
+ page.has_link? '.sortable', count: 2
8
+ page.has_link? '.copy', count: 1
9
+ page.has_link? '.edit', count: 1
10
+ page.has_link? '.destroy', count: 1
11
+
12
+ end
13
+
14
+ end
data/test/test_helper.rb CHANGED
@@ -3,6 +3,8 @@ ENV['RAILS_ENV'] = 'test'
3
3
 
4
4
  require File.expand_path('../dummy/config/environment.rb', __FILE__)
5
5
  require 'rails/test_help'
6
+ require "minitest/rails"
7
+ require "minitest/rails/capybara"
6
8
 
7
9
  Rails.backtrace_cleaner.remove_silencers!
8
10
 
@@ -13,5 +15,6 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
13
15
  ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
14
16
 
15
17
  class ActionController::TestCase
18
+ ActiveRecord::Migration.check_pending!
16
19
  fixtures :all
17
- end
20
+ 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.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Sprauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-18 00:00:00.000000000 Z
11
+ date: 2015-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,6 +52,34 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest-rails-capybara
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2'
55
83
  description: DRY improvements to the fine gem "smart_listing". See http://showcase.sology.eu/smart_listing
56
84
  for more details
57
85
  email:
@@ -71,6 +99,7 @@ files:
71
99
  - app/views/smarter_listing/edit.html.erb
72
100
  - app/views/smarter_listing/edit.js.erb
73
101
  - app/views/smarter_listing/index.js.erb
102
+ - app/views/smarter_listing/new.html.erb
74
103
  - app/views/smarter_listing/new.js.erb
75
104
  - app/views/smarter_listing/update.js.erb
76
105
  - lib/smarter_listing.rb
@@ -115,11 +144,9 @@ files:
115
144
  - test/dummy/config/locales/en.yml
116
145
  - test/dummy/config/routes.rb
117
146
  - test/dummy/config/secrets.yml
118
- - test/dummy/db/development.sqlite3
119
147
  - test/dummy/db/migrate/20140724101100_create_listings.rb
120
148
  - test/dummy/db/schema.rb
121
149
  - test/dummy/db/test.sqlite3
122
- - test/dummy/log/development.log
123
150
  - test/dummy/log/test.log
124
151
  - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
125
152
  - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
@@ -129,6 +156,7 @@ files:
129
156
  - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
130
157
  - test/fixtures/listings.yml
131
158
  - test/helpers/smarter_listing_loader_test.rb
159
+ - test/integrations/workflow_test.rb
132
160
  - test/test_helper.rb
133
161
  homepage: http://github.com/MichaelSp/smarter_listing
134
162
  licenses:
@@ -150,59 +178,59 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
178
  version: '0'
151
179
  requirements: []
152
180
  rubyforge_project:
153
- rubygems_version: 2.4.5
181
+ rubygems_version: 2.2.2
154
182
  signing_key:
155
183
  specification_version: 4
156
184
  summary: Smart Listing even smarter (and DRYer)
157
185
  test_files:
158
- - test/dummy/log/development.log
186
+ - test/dummy/README.rdoc
159
187
  - test/dummy/log/test.log
160
- - test/dummy/db/test.sqlite3
161
- - test/dummy/db/schema.rb
162
- - test/dummy/db/development.sqlite3
163
- - test/dummy/db/migrate/20140724101100_create_listings.rb
188
+ - test/dummy/app/models/listing.rb
189
+ - test/dummy/app/helpers/application_helper.rb
190
+ - test/dummy/app/views/layouts/default.html.erb
191
+ - test/dummy/app/views/listings/index.html.erb
192
+ - test/dummy/app/views/listings/_table_header.html.erb
193
+ - test/dummy/app/views/listings/_form.html.erb
194
+ - test/dummy/app/views/listings/_listing.html.erb
195
+ - test/dummy/app/controllers/application_controller.rb
196
+ - test/dummy/app/controllers/listings_controller.rb
197
+ - test/dummy/app/assets/stylesheets/application.css
198
+ - test/dummy/app/assets/javascripts/application.js
199
+ - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
164
200
  - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
201
+ - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
165
202
  - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
166
203
  - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
167
204
  - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
168
- - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
169
- - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
205
+ - test/dummy/db/schema.rb
206
+ - test/dummy/db/migrate/20140724101100_create_listings.rb
207
+ - test/dummy/db/test.sqlite3
170
208
  - test/dummy/config.ru
171
- - test/dummy/app/assets/javascripts/application.js
172
- - test/dummy/app/assets/stylesheets/application.css
173
- - test/dummy/app/controllers/application_controller.rb
174
- - test/dummy/app/controllers/listings_controller.rb
175
- - test/dummy/app/views/listings/index.html.erb
176
- - test/dummy/app/views/listings/_table_header.html.erb
177
- - test/dummy/app/views/listings/_listing.html.erb
178
- - test/dummy/app/views/listings/_form.html.erb
179
- - test/dummy/app/views/layouts/default.html.erb
180
- - test/dummy/app/helpers/application_helper.rb
181
- - test/dummy/app/models/listing.rb
182
- - test/dummy/bin/bundle
183
- - test/dummy/bin/rake
184
- - test/dummy/bin/rails
185
- - test/dummy/Rakefile
209
+ - test/dummy/config/locales/en.yml
210
+ - test/dummy/config/environments/production.rb
211
+ - test/dummy/config/environments/development.rb
212
+ - test/dummy/config/environments/test.rb
186
213
  - test/dummy/config/routes.rb
187
- - test/dummy/config/application.rb
188
- - test/dummy/config/environment.rb
189
- - test/dummy/config/secrets.yml
190
214
  - test/dummy/config/initializers/filter_parameter_logging.rb
191
- - test/dummy/config/initializers/mime_types.rb
215
+ - test/dummy/config/initializers/session_store.rb
192
216
  - test/dummy/config/initializers/backtrace_silencers.rb
217
+ - test/dummy/config/initializers/wrap_parameters.rb
193
218
  - test/dummy/config/initializers/assets.rb
194
219
  - test/dummy/config/initializers/cookies_serializer.rb
195
- - test/dummy/config/initializers/session_store.rb
196
220
  - test/dummy/config/initializers/inflections.rb
197
- - test/dummy/config/initializers/wrap_parameters.rb
198
- - test/dummy/config/locales/en.yml
221
+ - test/dummy/config/initializers/mime_types.rb
222
+ - test/dummy/config/environment.rb
199
223
  - test/dummy/config/boot.rb
200
- - test/dummy/config/environments/production.rb
201
- - test/dummy/config/environments/development.rb
202
- - test/dummy/config/environments/test.rb
224
+ - test/dummy/config/application.rb
225
+ - test/dummy/config/secrets.yml
203
226
  - test/dummy/config/database.yml
204
- - test/dummy/README.rdoc
227
+ - test/dummy/Rakefile
228
+ - test/dummy/bin/rake
229
+ - test/dummy/bin/bundle
230
+ - test/dummy/bin/rails
205
231
  - test/test_helper.rb
206
- - test/controllers/listings_controller_test.rb
207
232
  - test/helpers/smarter_listing_loader_test.rb
208
233
  - test/fixtures/listings.yml
234
+ - test/controllers/listings_controller_test.rb
235
+ - test/integrations/workflow_test.rb
236
+ has_rdoc:
Binary file
@@ -1,16 +0,0 @@
1
-  (14.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
-  (0.1ms) select sqlite_version(*)
3
-  (11.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
-  (0.1ms) SELECT version FROM "schema_migrations"
6
-  (12.5ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
7
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
8
-  (0.1ms) SELECT version FROM "schema_migrations"
9
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
- Migrating to CreateListings (20140724101100)
12
-  (0.0ms) begin transaction
13
-  (0.2ms) CREATE TABLE "listings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "content" varchar(255), "deleted_at" datetime, "created_at" datetime, "updated_at" datetime) 
14
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140724101100"]]
15
-  (11.6ms) commit transaction
16
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"