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.
- checksums.yaml +4 -4
- data/lib/smarter_listing/controller_extension.rb +4 -1
- data/lib/smarter_listing/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +239 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/2-G_d1nyH5L-tfs1COjSRDV4D4PHXpFDixR-427vPv0.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/2prVH3gTJQr2PqBXFjQQK5SrYyAi4nlyZiFvMuFnf9E.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/BjcBRDQ7ReN_5TWzzelR8_gkmXVX0yNMs9Y4N0Zruw0.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/EPWNamVMZjKjBp-Cv8PP7KXgKfXkhRqD3tQRUsyQhNQ.cache +3 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/G1Fwz7ZfIf9IJO_7plRV2LiOcj-yph4ayub_Rfl5A1I.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/IcK5i9TRn_K6X3tXlgLhONKe28qYUbTXhDK3OOmW9rg.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/NI1sxMV8RbfXsRJgnkowWHvfhBIq1YslnPj1q8scV4w.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Ni-el_h70WCtjSpzOzhi0foqv6LWUJ9EVUkr0aZX6F4.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/X3apBfZ3kegK8Vu-fX2LyJz4ldxykQcYDi76cuxHXBE.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/YzlREF1JXWGdWG8dhEm_Ql3cZbtf-cJvRJgbiTy1u5c.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/aTSQESFXHAbHM4QLOg4w6dLRWPzp5jc8sgI7s7M8-jI.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/bztNJLjrB0WWMQCDepfKwdwb76aqtyem-yQMme8RXGI.cache +3 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/eBQunmnXbyGoACiZBQyxb6gr2ihk5Me-pxZ71xyN0gM.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/gijpV-ZAHqoTEOclBGmtPrnIozXGE2hKVZ2gb3MTRV0.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/p41een3HwcrIZ25-HJpQMG0ihujx2f4mG-t0PWYuHm0.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/xtPch7E04Buul4xA--1nd-MY-HCxiL6_XJ_nLBV6HK0.cache +1 -0
- data/test/test_helper.rb +1 -1
- metadata +33 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f1fba47d415206f28bd439f8188007641fa2d9b
|
4
|
+
data.tar.gz: 723188667b653220856c8c5ae77079c65f200c08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -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
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11048
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11049
|
+
[1m[36m (14.8ms)[0m [1mCREATE TABLE "listings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "content" varchar, "deleted_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
11050
|
+
[1m[35m (11.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
11051
|
+
[1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
|
11052
|
+
[1m[35m (14.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
11053
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
11054
|
+
[1m[35m (14.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140724101100')
|
11055
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.0ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
11056
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11057
|
+
[1m[36m (21.0ms)[0m [1mCREATE TABLE "listings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "content" varchar, "deleted_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
11058
|
+
[1m[35m (16.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
11059
|
+
[1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
|
11060
|
+
[1m[35m (16.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
11061
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
11062
|
+
[1m[35m (17.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140724101100')
|
11063
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.0ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
11064
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mListing Load (0.1ms)[0m [1mSELECT "listings".* FROM "listings" LIMIT 10 OFFSET 0[0m
|
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
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11081
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11082
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "listings"[0m
|
11083
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (14.9ms)[0m [1mcommit transaction[0m
|
11085
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11086
|
+
---------------------------------------
|
11087
|
+
ListingsController::edit: test_get_html
|
11088
|
+
---------------------------------------
|
11089
|
+
[1m[36mListing Load (0.1ms)[0m [1mSELECT "listings".* FROM "listings" WHERE "listings"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
11090
|
+
Processing by ListingsController#edit as HTML
|
11091
|
+
Parameters: {"id"=>"980190962"}
|
11092
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "listings"
|
11093
|
+
[1m[36mListing Load (0.0ms)[0m [1mSELECT "listings".* FROM "listings" WHERE "listings"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mListing Load (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "listings"[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11109
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11110
|
+
-------------------------------------
|
11111
|
+
ListingsController::edit: test_get_js
|
11112
|
+
-------------------------------------
|
11113
|
+
[1m[35mListing Load (0.1ms)[0m SELECT "listings".* FROM "listings" WHERE "listings"."id" = ? LIMIT 1 [["id", 980190962]]
|
11114
|
+
Processing by ListingsController#edit as JS
|
11115
|
+
Parameters: {"id"=>"980190962"}
|
11116
|
+
[1m[36mListing Load (0.0ms)[0m [1mSELECT "listings".* FROM "listings" WHERE "listings"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11123
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11124
|
+
-----------------------------------------------------------
|
11125
|
+
SmarterListingLoader: test_controller_extensions_are_loaded
|
11126
|
+
-----------------------------------------------------------
|
11127
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11128
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11129
|
+
--------------------------------------------------
|
11130
|
+
SmarterListingLoader: test_helper_methods_included
|
11131
|
+
--------------------------------------------------
|
11132
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11133
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11134
|
+
-----------------------------------------------------
|
11135
|
+
SmarterListingLoader: test_setting_a_filter_parameter
|
11136
|
+
-----------------------------------------------------
|
11137
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11138
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11139
|
+
----------------------------------------------------
|
11140
|
+
SmarterListingLoader: test_smarter_listing_is_loaded
|
11141
|
+
----------------------------------------------------
|
11142
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11143
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11144
|
+
-------------------------------------------------------
|
11145
|
+
SmarterListingLoader: test_the_default_filter_parameter
|
11146
|
+
-------------------------------------------------------
|
11147
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11148
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11149
|
+
---------------------------------------
|
11150
|
+
ListingsController: test_correct_layout
|
11151
|
+
---------------------------------------
|
11152
|
+
Processing by ListingsController#index as HTML
|
11153
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mListing Load (0.1ms)[0m [1mSELECT "listings".* FROM "listings" LIMIT 10 OFFSET 0[0m
|
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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11168
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11169
|
+
----------------------------------------------
|
11170
|
+
ListingsController: test_should_create_listing
|
11171
|
+
----------------------------------------------
|
11172
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "listings"[0m
|
11173
|
+
[1m[35mListing Load (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11178
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "listings"
|
11188
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11189
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11190
|
+
-----------------------------------------------
|
11191
|
+
ListingsController: test_should_destroy_listing
|
11192
|
+
-----------------------------------------------
|
11193
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "listings"[0m
|
11194
|
+
[1m[35mListing Load (0.0ms)[0m SELECT "listings".* FROM "listings" WHERE "listings"."id" = ? LIMIT 1 [["id", 980190962]]
|
11195
|
+
Processing by ListingsController#destroy as JS
|
11196
|
+
Parameters: {"id"=>"980190962"}
|
11197
|
+
[1m[36mListing Load (0.0ms)[0m [1mSELECT "listings".* FROM "listings" WHERE "listings"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
11198
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11199
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "listings" WHERE "listings"."id" = ?[0m [["id", 980190962]]
|
11200
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "listings"[0m
|
11205
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11206
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11207
|
+
-----------------------------------------
|
11208
|
+
ListingsController: test_should_get_index
|
11209
|
+
-----------------------------------------
|
11210
|
+
Processing by ListingsController#index as HTML
|
11211
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mListing Load (0.1ms)[0m [1mSELECT "listings".* FROM "listings" LIMIT 10 OFFSET 0[0m
|
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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mListing Load (0.0ms)[0m [1mSELECT "listings".* FROM "listings" WHERE "listings"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
11226
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11227
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11228
|
+
-----------------------------------------------------------------
|
11229
|
+
ListingsController: test_should_have_the_methods_from_all_helpers
|
11230
|
+
-----------------------------------------------------------------
|
11231
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11232
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11233
|
+
----------------------------------------------
|
11234
|
+
ListingsController: test_should_update_listing
|
11235
|
+
----------------------------------------------
|
11236
|
+
[1m[35mListing Load (0.0ms)[0m 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
|
+
[1m[36mListing Load (0.0ms)[0m [1mSELECT "listings".* FROM "listings" WHERE "listings"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
11240
|
+
Unpermitted parameter: deleted_at
|
11241
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11242
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "listings" SET "name" = ?, "updated_at" = ? WHERE "listings"."id" = ?[0m [["name", "newName"], ["updated_at", "2015-04-27 16:04:39.171071"], ["id", 980190962]]
|
11243
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
11252
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11253
|
+
------------------------------------------------
|
11254
|
+
ListingsController::new::capybara: test_get_html
|
11255
|
+
------------------------------------------------
|
11256
|
+
Processing by ListingsController#new as HTML
|
11257
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "listings"[0m
|
11258
|
+
[1m[35mListing Load (0.1ms)[0m 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
|
+
[1m[36mListing Load (0.1ms)[0m [1mSELECT "listings".* FROM "listings" LIMIT 10 OFFSET 0[0m
|
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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11275
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11276
|
+
----------------------------------------------
|
11277
|
+
ListingsController::new::capybara: test_get_js
|
11278
|
+
----------------------------------------------
|
11279
|
+
Processing by ListingsController#new as JS
|
11280
|
+
[1m[36mListing Load (0.1ms)[0m [1mSELECT "listings".* FROM "listings" WHERE "listings"."id" IS NULL LIMIT 1[0m
|
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
|
+
[1m[35m (0.1ms)[0m 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
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
"%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
|
Binary file
|
Binary file
|
Binary file
|
@@ -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
|
Binary file
|
@@ -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.
|
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.
|
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
|