smarter_listing 0.3.0 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/lib/smarter_listing/controller_extension.rb +4 -1
  3. data/lib/smarter_listing/version.rb +1 -1
  4. data/test/dummy/db/test.sqlite3 +0 -0
  5. data/test/dummy/log/test.log +239 -0
  6. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/2-G_d1nyH5L-tfs1COjSRDV4D4PHXpFDixR-427vPv0.cache +1 -0
  7. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/2prVH3gTJQr2PqBXFjQQK5SrYyAi4nlyZiFvMuFnf9E.cache +1 -0
  8. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/BjcBRDQ7ReN_5TWzzelR8_gkmXVX0yNMs9Y4N0Zruw0.cache +2 -0
  9. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/EPWNamVMZjKjBp-Cv8PP7KXgKfXkhRqD3tQRUsyQhNQ.cache +3 -0
  10. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/G1Fwz7ZfIf9IJO_7plRV2LiOcj-yph4ayub_Rfl5A1I.cache +1 -0
  11. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/IcK5i9TRn_K6X3tXlgLhONKe28qYUbTXhDK3OOmW9rg.cache +0 -0
  12. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/NI1sxMV8RbfXsRJgnkowWHvfhBIq1YslnPj1q8scV4w.cache +1 -0
  13. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Ni-el_h70WCtjSpzOzhi0foqv6LWUJ9EVUkr0aZX6F4.cache +0 -0
  14. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/X3apBfZ3kegK8Vu-fX2LyJz4ldxykQcYDi76cuxHXBE.cache +0 -0
  15. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/YzlREF1JXWGdWG8dhEm_Ql3cZbtf-cJvRJgbiTy1u5c.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/aTSQESFXHAbHM4QLOg4w6dLRWPzp5jc8sgI7s7M8-jI.cache +1 -0
  17. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/bztNJLjrB0WWMQCDepfKwdwb76aqtyem-yQMme8RXGI.cache +3 -0
  18. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/eBQunmnXbyGoACiZBQyxb6gr2ihk5Me-pxZ71xyN0gM.cache +2 -0
  19. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/gijpV-ZAHqoTEOclBGmtPrnIozXGE2hKVZ2gb3MTRV0.cache +0 -0
  20. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/p41een3HwcrIZ25-HJpQMG0ihujx2f4mG-t0PWYuHm0.cache +1 -0
  21. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/xtPch7E04Buul4xA--1nd-MY-HCxiL6_XJ_nLBV6HK0.cache +1 -0
  22. data/test/test_helper.rb +1 -1
  23. metadata +33 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1a7fc8355e68e769eef4cc8f771d8173c6d8e34
4
- data.tar.gz: 368b6206e1d714a79d541fcdec8f4328318a8b3f
3
+ metadata.gz: 0f1fba47d415206f28bd439f8188007641fa2d9b
4
+ data.tar.gz: 723188667b653220856c8c5ae77079c65f200c08
5
5
  SHA512:
6
- metadata.gz: d7c4a145fbcdfe2ebb0ca9ee3ed988440aa96e10d2f7332b97128205b8c9459e1c1bcf6bb5cf114fa05947709976ff867817b4ecd6898232a3e04a20e97de887
7
- data.tar.gz: eef2d551ecc2788d9018e957ac54ca9eaad4d4b6dd2e6231ad5281c564aee379c0837fa0cb6aaa2b92a84a579d7c0ed4ab4c4d00fbcb0acfacdde04e26065085
6
+ metadata.gz: 978a1dffec1a49c5288ee1b6b4134213c1c94e9392e1813c9abf2878a15f48d51a5a18201f0c31aed7941793e8f37859f67f9a7e9ea4821b4210395742b57a0c
7
+ data.tar.gz: f96bd263a4b9743c94c7314aecff24cbcff0970212e30db5f6549709ddb481f22a7a441d4dc929d01ca74c95e309c2560e34ee4bc58dcdabbba671f3b26032fa
@@ -93,7 +93,10 @@ module SmarterListing::ControllerExtension
93
93
  end
94
94
 
95
95
  def load_resource
96
- instance_variable_set resource_ivar, (model.find(params[:id]) rescue (action_name == 'new' ? model.new(_resource_params) : nil))
96
+ res = model.find_by_id params[:id]
97
+ res ||= model.new(_resource_params) if action_name == 'new'
98
+ res ||= model.unscoped.find_by_id params[:id] if action_name == 'restore'
99
+ instance_variable_set resource_ivar, res
97
100
  end
98
101
 
99
102
  def resource
@@ -1,3 +1,3 @@
1
1
  module SmarterListing
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.2'
3
3
  end
Binary file
@@ -11045,3 +11045,242 @@ Processing by ListingsController#index as HTML
11045
11045
  Rendered listings/index.html.erb within layouts/default (3.4ms)
11046
11046
  Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.2ms)
11047
11047
   (0.1ms) rollback transaction
11048
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
11049
+  (14.8ms) CREATE TABLE "listings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "content" varchar, "deleted_at" datetime, "created_at" datetime, "updated_at" datetime) 
11050
+  (11.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
11051
+  (0.0ms) select sqlite_version(*)
11052
+  (14.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
11053
+  (0.0ms) SELECT version FROM "schema_migrations"
11054
+  (14.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140724101100')
11055
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
11056
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
11057
+  (21.0ms) CREATE TABLE "listings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "content" varchar, "deleted_at" datetime, "created_at" datetime, "updated_at" datetime) 
11058
+  (16.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
11059
+  (0.0ms) select sqlite_version(*)
11060
+  (16.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
11061
+  (0.1ms) SELECT version FROM "schema_migrations"
11062
+  (17.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140724101100')
11063
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
11064
+  (0.1ms) begin transaction
11065
+ ---------------------------------------
11066
+ Workflow::capybara: test_0001_has index
11067
+ ---------------------------------------
11068
+ Started GET "/listings" for 127.0.0.1 at 2015-04-27 18:04:38 +0200
11069
+ Processing by ListingsController#index as HTML
11070
+  (0.0ms) SELECT COUNT(*) FROM "listings"
11071
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_sortable.html.erb (0.4ms)
11072
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_sortable.html.erb (0.1ms)
11073
+ Listing Load (0.1ms) SELECT "listings".* FROM "listings" LIMIT 10 OFFSET 0
11074
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_item_new.html.erb (0.6ms)
11075
+ CACHE (0.0ms) SELECT COUNT(*) FROM "listings"
11076
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_pagination_per_page_links.html.erb (0.4ms)
11077
+ Rendered listings/_table_header.html.erb (6.7ms)
11078
+ Rendered listings/index.html.erb within layouts/default (10.0ms)
11079
+ Completed 200 OK in 120ms (Views: 117.9ms | ActiveRecord: 0.2ms)
11080
+  (0.0ms) rollback transaction
11081
+  (0.0ms) begin transaction
11082
+ Fixture Delete (0.2ms) DELETE FROM "listings"
11083
+ Fixture Insert (0.1ms) INSERT INTO "listings" ("name", "content", "created_at", "updated_at", "id") VALUES ('asiojgsiodjg', 'pokdsfopjksdfop', '2015-04-27 16:04:39', '2015-04-27 16:04:39', 980190962)
11084
+  (14.9ms) commit transaction
11085
+  (0.0ms) begin transaction
11086
+ ---------------------------------------
11087
+ ListingsController::edit: test_get_html
11088
+ ---------------------------------------
11089
+ Listing Load (0.1ms) SELECT "listings".* FROM "listings" WHERE "listings"."id" = ? LIMIT 1 [["id", 980190962]]
11090
+ Processing by ListingsController#edit as HTML
11091
+ Parameters: {"id"=>"980190962"}
11092
+  (0.0ms) SELECT COUNT(*) FROM "listings"
11093
+ Listing Load (0.0ms) SELECT "listings".* FROM "listings" WHERE "listings"."id" = ? LIMIT 1 [["id", 980190962]]
11094
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_sortable.html.erb (0.1ms)
11095
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_sortable.html.erb (0.1ms)
11096
+ Listing Load (0.1ms) SELECT "listings".* FROM "listings" LIMIT 10 OFFSET 0
11097
+ Rendered /home/michael/src/arbeit/smarter_listing/app/views/smart_listing/_action_copy.html.erb (0.2ms)
11098
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_action_edit.html.erb (0.3ms)
11099
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_action_delete.html.erb (0.3ms)
11100
+ Rendered listings/_listing.html.erb (2.4ms)
11101
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_item_new.html.erb (0.1ms)
11102
+  (0.0ms) SELECT COUNT(*) FROM "listings"
11103
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_pagination_per_page_links.html.erb (0.1ms)
11104
+ Rendered listings/_table_header.html.erb (4.5ms)
11105
+ Rendered listings/_form.html.erb (0.7ms)
11106
+ Rendered /home/michael/src/arbeit/smarter_listing/app/views/smarter_listing/edit.html.erb within layouts/default (5.9ms)
11107
+ Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.2ms)
11108
+  (0.0ms) rollback transaction
11109
+  (0.0ms) begin transaction
11110
+ -------------------------------------
11111
+ ListingsController::edit: test_get_js
11112
+ -------------------------------------
11113
+ Listing Load (0.1ms) SELECT "listings".* FROM "listings" WHERE "listings"."id" = ? LIMIT 1 [["id", 980190962]]
11114
+ Processing by ListingsController#edit as JS
11115
+ Parameters: {"id"=>"980190962"}
11116
+ Listing Load (0.0ms) SELECT "listings".* FROM "listings" WHERE "listings"."id" = ? LIMIT 1 [["id", 980190962]]
11117
+ Rendered listings/_form.html.erb (0.6ms)
11118
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/item/_edit.js.erb (1.1ms)
11119
+ Rendered /home/michael/src/arbeit/smarter_listing/app/views/smarter_listing/_form_logic.js.erb (0.2ms)
11120
+ Rendered /home/michael/src/arbeit/smarter_listing/app/views/smarter_listing/edit.js.erb (2.9ms)
11121
+ Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)
11122
+  (0.0ms) rollback transaction
11123
+  (0.1ms) begin transaction
11124
+ -----------------------------------------------------------
11125
+ SmarterListingLoader: test_controller_extensions_are_loaded
11126
+ -----------------------------------------------------------
11127
+  (0.0ms) rollback transaction
11128
+  (0.0ms) begin transaction
11129
+ --------------------------------------------------
11130
+ SmarterListingLoader: test_helper_methods_included
11131
+ --------------------------------------------------
11132
+  (0.1ms) rollback transaction
11133
+  (0.0ms) begin transaction
11134
+ -----------------------------------------------------
11135
+ SmarterListingLoader: test_setting_a_filter_parameter
11136
+ -----------------------------------------------------
11137
+  (0.0ms) rollback transaction
11138
+  (0.0ms) begin transaction
11139
+ ----------------------------------------------------
11140
+ SmarterListingLoader: test_smarter_listing_is_loaded
11141
+ ----------------------------------------------------
11142
+  (0.0ms) rollback transaction
11143
+  (0.0ms) begin transaction
11144
+ -------------------------------------------------------
11145
+ SmarterListingLoader: test_the_default_filter_parameter
11146
+ -------------------------------------------------------
11147
+  (0.0ms) rollback transaction
11148
+  (0.0ms) begin transaction
11149
+ ---------------------------------------
11150
+ ListingsController: test_correct_layout
11151
+ ---------------------------------------
11152
+ Processing by ListingsController#index as HTML
11153
+  (0.1ms) SELECT COUNT(*) FROM "listings"
11154
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_sortable.html.erb (0.1ms)
11155
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_sortable.html.erb (0.1ms)
11156
+ Listing Load (0.1ms) SELECT "listings".* FROM "listings" LIMIT 10 OFFSET 0
11157
+ Rendered /home/michael/src/arbeit/smarter_listing/app/views/smart_listing/_action_copy.html.erb (0.1ms)
11158
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_action_edit.html.erb (0.1ms)
11159
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_action_delete.html.erb (0.1ms)
11160
+ Rendered listings/_listing.html.erb (1.0ms)
11161
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_item_new.html.erb (0.1ms)
11162
+  (0.1ms) SELECT COUNT(*) FROM "listings"
11163
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_pagination_per_page_links.html.erb (0.1ms)
11164
+ Rendered listings/_table_header.html.erb (3.7ms)
11165
+ Rendered listings/index.html.erb within layouts/default (4.2ms)
11166
+ Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.2ms)
11167
+  (0.0ms) rollback transaction
11168
+  (0.0ms) begin transaction
11169
+ ----------------------------------------------
11170
+ ListingsController: test_should_create_listing
11171
+ ----------------------------------------------
11172
+  (0.1ms) SELECT COUNT(*) FROM "listings"
11173
+ Listing Load (0.0ms) SELECT "listings".* FROM "listings" WHERE "listings"."id" = ? LIMIT 1 [["id", 980190962]]
11174
+ Processing by ListingsController#create as JS
11175
+ Parameters: {"listing"=>{"content"=>"pokdsfopjksdfop", "deleted_at"=>nil, "name"=>"newName"}}
11176
+ Unpermitted parameter: deleted_at
11177
+  (0.0ms) SAVEPOINT active_record_1
11178
+ SQL (0.2ms) INSERT INTO "listings" ("name", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "newName"], ["content", "pokdsfopjksdfop"], ["created_at", "2015-04-27 16:04:39.148343"], ["updated_at", "2015-04-27 16:04:39.148343"]]
11179
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11180
+ Rendered /home/michael/src/arbeit/smarter_listing/app/views/smart_listing/_action_copy.html.erb (0.2ms)
11181
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_action_edit.html.erb (0.2ms)
11182
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_action_delete.html.erb (0.3ms)
11183
+ Rendered listings/_listing.html.erb (2.8ms)
11184
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/item/_create.js.erb (3.3ms)
11185
+ Rendered /home/michael/src/arbeit/smarter_listing/app/views/smarter_listing/create.js.erb (4.5ms)
11186
+ Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.3ms)
11187
+  (0.1ms) SELECT COUNT(*) FROM "listings"
11188
+  (0.1ms) rollback transaction
11189
+  (0.0ms) begin transaction
11190
+ -----------------------------------------------
11191
+ ListingsController: test_should_destroy_listing
11192
+ -----------------------------------------------
11193
+  (0.0ms) SELECT COUNT(*) FROM "listings"
11194
+ Listing Load (0.0ms) SELECT "listings".* FROM "listings" WHERE "listings"."id" = ? LIMIT 1 [["id", 980190962]]
11195
+ Processing by ListingsController#destroy as JS
11196
+ Parameters: {"id"=>"980190962"}
11197
+ Listing Load (0.0ms) SELECT "listings".* FROM "listings" WHERE "listings"."id" = ? LIMIT 1 [["id", 980190962]]
11198
+  (0.0ms) SAVEPOINT active_record_1
11199
+ SQL (0.1ms) DELETE FROM "listings" WHERE "listings"."id" = ? [["id", 980190962]]
11200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11201
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/item/_destroy.js.erb (0.3ms)
11202
+ Rendered /home/michael/src/arbeit/smarter_listing/app/views/smarter_listing/destroy.js.erb (1.0ms)
11203
+ Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)
11204
+  (0.0ms) SELECT COUNT(*) FROM "listings"
11205
+  (0.1ms) rollback transaction
11206
+  (0.0ms) begin transaction
11207
+ -----------------------------------------
11208
+ ListingsController: test_should_get_index
11209
+ -----------------------------------------
11210
+ Processing by ListingsController#index as HTML
11211
+  (0.1ms) SELECT COUNT(*) FROM "listings"
11212
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_sortable.html.erb (0.1ms)
11213
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_sortable.html.erb (0.1ms)
11214
+ Listing Load (0.1ms) SELECT "listings".* FROM "listings" LIMIT 10 OFFSET 0
11215
+ Rendered /home/michael/src/arbeit/smarter_listing/app/views/smart_listing/_action_copy.html.erb (0.1ms)
11216
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_action_edit.html.erb (0.1ms)
11217
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_action_delete.html.erb (0.1ms)
11218
+ Rendered listings/_listing.html.erb (0.7ms)
11219
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_item_new.html.erb (0.1ms)
11220
+  (0.0ms) SELECT COUNT(*) FROM "listings"
11221
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_pagination_per_page_links.html.erb (0.1ms)
11222
+ Rendered listings/_table_header.html.erb (3.1ms)
11223
+ Rendered listings/index.html.erb within layouts/default (3.7ms)
11224
+ Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)
11225
+ Listing Load (0.0ms) SELECT "listings".* FROM "listings" WHERE "listings"."id" = ? LIMIT 1 [["id", 980190962]]
11226
+  (0.0ms) rollback transaction
11227
+  (0.1ms) begin transaction
11228
+ -----------------------------------------------------------------
11229
+ ListingsController: test_should_have_the_methods_from_all_helpers
11230
+ -----------------------------------------------------------------
11231
+  (0.0ms) rollback transaction
11232
+  (0.0ms) begin transaction
11233
+ ----------------------------------------------
11234
+ ListingsController: test_should_update_listing
11235
+ ----------------------------------------------
11236
+ Listing Load (0.0ms) SELECT "listings".* FROM "listings" WHERE "listings"."id" = ? LIMIT 1 [["id", 980190962]]
11237
+ Processing by ListingsController#update as JS
11238
+ Parameters: {"listing"=>{"content"=>"pokdsfopjksdfop", "deleted_at"=>nil, "name"=>"newName"}, "id"=>"980190962"}
11239
+ Listing Load (0.0ms) SELECT "listings".* FROM "listings" WHERE "listings"."id" = ? LIMIT 1 [["id", 980190962]]
11240
+ Unpermitted parameter: deleted_at
11241
+  (0.0ms) SAVEPOINT active_record_1
11242
+ SQL (0.2ms) UPDATE "listings" SET "name" = ?, "updated_at" = ? WHERE "listings"."id" = ? [["name", "newName"], ["updated_at", "2015-04-27 16:04:39.171071"], ["id", 980190962]]
11243
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11244
+ Rendered /home/michael/src/arbeit/smarter_listing/app/views/smart_listing/_action_copy.html.erb (0.1ms)
11245
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_action_edit.html.erb (0.2ms)
11246
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_action_delete.html.erb (0.1ms)
11247
+ Rendered listings/_listing.html.erb (1.2ms)
11248
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/item/_update.js.erb (1.7ms)
11249
+ Rendered /home/michael/src/arbeit/smarter_listing/app/views/smarter_listing/update.js.erb (2.7ms)
11250
+ Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.2ms)
11251
+  (0.2ms) rollback transaction
11252
+  (0.0ms) begin transaction
11253
+ ------------------------------------------------
11254
+ ListingsController::new::capybara: test_get_html
11255
+ ------------------------------------------------
11256
+ Processing by ListingsController#new as HTML
11257
+  (0.1ms) SELECT COUNT(*) FROM "listings"
11258
+ Listing Load (0.1ms) SELECT "listings".* FROM "listings" WHERE "listings"."id" IS NULL LIMIT 1
11259
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_sortable.html.erb (0.1ms)
11260
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_sortable.html.erb (0.1ms)
11261
+ Listing Load (0.1ms) SELECT "listings".* FROM "listings" LIMIT 10 OFFSET 0
11262
+ Rendered /home/michael/src/arbeit/smarter_listing/app/views/smart_listing/_action_copy.html.erb (0.1ms)
11263
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_action_edit.html.erb (0.1ms)
11264
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_action_delete.html.erb (0.1ms)
11265
+ Rendered listings/_listing.html.erb (0.7ms)
11266
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_item_new.html.erb (0.2ms)
11267
+  (0.0ms) SELECT COUNT(*) FROM "listings"
11268
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/_pagination_per_page_links.html.erb (0.1ms)
11269
+ Rendered listings/_table_header.html.erb (2.7ms)
11270
+ Rendered listings/_form.html.erb (0.3ms)
11271
+ Rendered /home/michael/src/arbeit/smarter_listing/app/views/smarter_listing/_form_logic.js.erb (0.3ms)
11272
+ Rendered /home/michael/src/arbeit/smarter_listing/app/views/smarter_listing/new.html.erb within layouts/default (4.5ms)
11273
+ Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms)
11274
+  (0.0ms) rollback transaction
11275
+  (0.0ms) begin transaction
11276
+ ----------------------------------------------
11277
+ ListingsController::new::capybara: test_get_js
11278
+ ----------------------------------------------
11279
+ Processing by ListingsController#new as JS
11280
+ Listing Load (0.1ms) SELECT "listings".* FROM "listings" WHERE "listings"."id" IS NULL LIMIT 1
11281
+ Rendered listings/_form.html.erb (0.3ms)
11282
+ Rendered /home/michael/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/smart_listing-1.1.2/app/views/smart_listing/item/_new.js.erb (0.7ms)
11283
+ Rendered /home/michael/src/arbeit/smarter_listing/app/views/smarter_listing/_form_logic.js.erb (0.0ms)
11284
+ Rendered /home/michael/src/arbeit/smarter_listing/app/views/smarter_listing/new.js.erb (1.5ms)
11285
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
11286
+  (0.1ms) rollback transaction
@@ -0,0 +1 @@
1
+ "%&�S隉��}+�H�D�V\�m��ڋ�Q�_�B��
@@ -0,0 +1 @@
1
+ "%�û�!�B7!ҭ�_���@��.���$)�Ö�
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"0processors:type=text/css&file_type=text/css;TTI"mfile-digest:///home/michael/src/arbeit/smarter_listing/test/dummy/app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"]file-digest:///home/michael/src/arbeit/smarter_listing/test/dummy/app/assets/stylesheets;TT
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash{
3
+ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"lfile-digest:///home/michael/src/arbeit/smarter_listing/test/dummy/app/assets/javascripts/application.js;TTI"]file-digest:///home/michael/src/arbeit/smarter_listing/test/dummy/app/assets/javascripts;TT
@@ -0,0 +1 @@
1
+ I"�file:///home/michael/src/arbeit/smarter_listing/test/dummy/app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=ec17df377995d7cb297be973817df4ff3c57dff530f12fbcb5f8058cc4ef449a:ET
@@ -0,0 +1 @@
1
+ "%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
@@ -0,0 +1 @@
1
+ I"�file:///home/michael/src/arbeit/smarter_listing/test/dummy/app/assets/stylesheets/application.css?type=text/css&id=8783832f537624ac1be787f03da54b389ad073bf233b89c2d655762f0cdaaa5f:ET
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash{
3
+ I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"mfile-digest:///home/michael/src/arbeit/smarter_listing/test/dummy/app/assets/stylesheets/application.css;TTI"]file-digest:///home/michael/src/arbeit/smarter_listing/test/dummy/app/assets/stylesheets;TT
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"lfile-digest:///home/michael/src/arbeit/smarter_listing/test/dummy/app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"]file-digest:///home/michael/src/arbeit/smarter_listing/test/dummy/app/assets/javascripts;TT
@@ -0,0 +1 @@
1
+ I"�file:///home/michael/src/arbeit/smarter_listing/test/dummy/app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=0c2ea82055e32d5b761719bcfaf9612f108642b9b98de567c30e3bf3b3fdd411:ET
@@ -0,0 +1 @@
1
+ I"�file:///home/michael/src/arbeit/smarter_listing/test/dummy/app/assets/javascripts/application.js?type=application/javascript&id=546fa5681ad4a78e8d7f2b15f116436f9993dc479ce58d38387a48d089c8b82f:ET
data/test/test_helper.rb CHANGED
@@ -15,6 +15,6 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
15
15
  ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
16
16
 
17
17
  class ActionController::TestCase
18
- ActiveRecord::Migration.check_pending!
18
+ ActiveRecord::Migration.maintain_test_schema!
19
19
  fixtures :all
20
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smarter_listing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Sprauer
@@ -155,6 +155,22 @@ files:
155
155
  - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
156
156
  - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
157
157
  - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
158
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/2-G_d1nyH5L-tfs1COjSRDV4D4PHXpFDixR-427vPv0.cache
159
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/2prVH3gTJQr2PqBXFjQQK5SrYyAi4nlyZiFvMuFnf9E.cache
160
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/BjcBRDQ7ReN_5TWzzelR8_gkmXVX0yNMs9Y4N0Zruw0.cache
161
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/EPWNamVMZjKjBp-Cv8PP7KXgKfXkhRqD3tQRUsyQhNQ.cache
162
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/G1Fwz7ZfIf9IJO_7plRV2LiOcj-yph4ayub_Rfl5A1I.cache
163
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/IcK5i9TRn_K6X3tXlgLhONKe28qYUbTXhDK3OOmW9rg.cache
164
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/NI1sxMV8RbfXsRJgnkowWHvfhBIq1YslnPj1q8scV4w.cache
165
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/Ni-el_h70WCtjSpzOzhi0foqv6LWUJ9EVUkr0aZX6F4.cache
166
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/X3apBfZ3kegK8Vu-fX2LyJz4ldxykQcYDi76cuxHXBE.cache
167
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/YzlREF1JXWGdWG8dhEm_Ql3cZbtf-cJvRJgbiTy1u5c.cache
168
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/aTSQESFXHAbHM4QLOg4w6dLRWPzp5jc8sgI7s7M8-jI.cache
169
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/bztNJLjrB0WWMQCDepfKwdwb76aqtyem-yQMme8RXGI.cache
170
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/eBQunmnXbyGoACiZBQyxb6gr2ihk5Me-pxZ71xyN0gM.cache
171
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/gijpV-ZAHqoTEOclBGmtPrnIozXGE2hKVZ2gb3MTRV0.cache
172
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/p41een3HwcrIZ25-HJpQMG0ihujx2f4mG-t0PWYuHm0.cache
173
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/xtPch7E04Buul4xA--1nd-MY-HCxiL6_XJ_nLBV6HK0.cache
158
174
  - test/fixtures/listings.yml
159
175
  - test/helpers/smarter_listing_loader_test.rb
160
176
  - test/integrations/workflow_test.rb
@@ -203,6 +219,22 @@ test_files:
203
219
  - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
204
220
  - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
205
221
  - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
222
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/BjcBRDQ7ReN_5TWzzelR8_gkmXVX0yNMs9Y4N0Zruw0.cache
223
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/X3apBfZ3kegK8Vu-fX2LyJz4ldxykQcYDi76cuxHXBE.cache
224
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/bztNJLjrB0WWMQCDepfKwdwb76aqtyem-yQMme8RXGI.cache
225
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/Ni-el_h70WCtjSpzOzhi0foqv6LWUJ9EVUkr0aZX6F4.cache
226
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/IcK5i9TRn_K6X3tXlgLhONKe28qYUbTXhDK3OOmW9rg.cache
227
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/gijpV-ZAHqoTEOclBGmtPrnIozXGE2hKVZ2gb3MTRV0.cache
228
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/xtPch7E04Buul4xA--1nd-MY-HCxiL6_XJ_nLBV6HK0.cache
229
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/EPWNamVMZjKjBp-Cv8PP7KXgKfXkhRqD3tQRUsyQhNQ.cache
230
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/eBQunmnXbyGoACiZBQyxb6gr2ihk5Me-pxZ71xyN0gM.cache
231
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/2prVH3gTJQr2PqBXFjQQK5SrYyAi4nlyZiFvMuFnf9E.cache
232
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/aTSQESFXHAbHM4QLOg4w6dLRWPzp5jc8sgI7s7M8-jI.cache
233
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/G1Fwz7ZfIf9IJO_7plRV2LiOcj-yph4ayub_Rfl5A1I.cache
234
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/2-G_d1nyH5L-tfs1COjSRDV4D4PHXpFDixR-427vPv0.cache
235
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/p41een3HwcrIZ25-HJpQMG0ihujx2f4mG-t0PWYuHm0.cache
236
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/NI1sxMV8RbfXsRJgnkowWHvfhBIq1YslnPj1q8scV4w.cache
237
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/YzlREF1JXWGdWG8dhEm_Ql3cZbtf-cJvRJgbiTy1u5c.cache
206
238
  - test/dummy/db/schema.rb
207
239
  - test/dummy/db/migrate/20140724101100_create_listings.rb
208
240
  - test/dummy/db/test.sqlite3