nimbleshop_core 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/admin/payment_method.js.coffee +8 -9
- data/app/assets/javascripts/admin/products/delete_picture.js.coffee +10 -0
- data/app/assets/javascripts/admin/products/nested_form_fix.js.coffee +4 -0
- data/app/assets/javascripts/admin/products/sort_picture.js.coffee +15 -0
- data/app/assets/javascripts/admin/shipit.js.coffee +17 -6
- data/app/assets/javascripts/admin/shipping_methods/edit.js.coffee +2 -3
- data/app/assets/javascripts/admin.js +1 -1
- data/app/assets/stylesheets/admin_custom.css +8 -0
- data/app/controllers/admin/custom_fields_controller.rb +3 -3
- data/app/controllers/admin/link_groups_controller.rb +3 -9
- data/app/controllers/admin/navigations_controller.rb +5 -5
- data/app/controllers/admin/orders_controller.rb +8 -4
- data/app/controllers/admin/payment_methods_controller.rb +9 -8
- data/app/controllers/admin/product_groups_controller.rb +1 -3
- data/app/controllers/admin/products_controller.rb +1 -5
- data/app/controllers/admin/shipments_controller.rb +9 -4
- data/app/controllers/admin/shipping_methods_controller.rb +2 -2
- data/app/controllers/admin/shipping_zones_controller.rb +5 -5
- data/app/models/creditcard.rb +1 -1
- data/config/routes.rb +1 -4
- data/db/migrate/20111022144421_create_initial_tables.rb +0 -1
- data/lib/generators/nimbleshop/app/templates/config/initializers/setup_email.rb +4 -4
- data/lib/generators/nimbleshop/app/templates/config/nimbleshop.yml +3 -1
- data/lib/nimbleshop/core_ext/force_ssl.rb +4 -4
- data/lib/nimbleshop/version.rb +1 -1
- data/lib/tasks/setup.rake +4 -1
- data/test/integration/admin/link_groups_acceptance_test.rb +3 -3
- data/test/integration/admin/orders_acceptance_test.rb +5 -5
- data/test/integration/admin/payment_methods_acceptance_test.rb +5 -5
- data/test/integration/admin/product_groups_acceptance_test.rb +0 -4
- data/test/integration/admin/products_acceptance_test.rb +28 -33
- data/test/integration/admin/shipping_methods_acceptance_test.rb +4 -4
- data/test/integration/admin/shipping_zones_acceptance_test.rb +1 -1
- data/test/integration/admin/shops_acceptance_test.rb +2 -2
- data/test/myshop/Gemfile +1 -1
- data/test/myshop/config/initializers/secret_token.rb +1 -1
- data/test/myshop/config/initializers/setup_email.rb +4 -4
- data/test/myshop/config/nimbleshop.yml +3 -1
- data/test/myshop/db/development.sqlite3 +0 -0
- data/test/myshop/db/migrate/{20121108022908_create_initial_tables.nimbleshop_core.rb → 20121129183432_create_initial_tables.nimbleshop_core.rb} +0 -1
- data/test/myshop/db/schema.rb +1 -2
- data/test/myshop/db/test.sqlite3 +0 -0
- data/test/myshop/log/development.log +717 -806
- data/test/myshop/log/test.log +97501 -0
- data/test/myshop/public/uploads/picture/picture/1/avatar.png +0 -0
- data/test/myshop/public/uploads/picture/picture/1/large_avatar.png +0 -0
- data/test/myshop/public/uploads/picture/picture/1/large_plus_avatar.png +0 -0
- data/test/myshop/public/uploads/picture/picture/1/medium_avatar.png +0 -0
- data/test/myshop/public/uploads/picture/picture/1/medium_plus_avatar.png +0 -0
- data/test/myshop/public/uploads/picture/picture/1/small_avatar.png +0 -0
- data/test/myshop/public/uploads/picture/picture/1/small_plus_avatar.png +0 -0
- data/test/myshop/public/uploads/picture/picture/1/tiny_avatar.png +0 -0
- data/test/myshop/public/uploads/picture/picture/1/tiny_plus_avatar.png +0 -0
- data/test/myshop/public/uploads/tmp/20121203-1438-25351-1516/avatar.png +0 -0
- data/test/myshop/public/uploads/tmp/20121203-1438-25351-1516/tiny_avatar.png +0 -0
- data/test/myshop/public/uploads/tmp/20121203-1438-25351-6840/avatar.png +0 -0
- data/test/myshop/public/uploads/tmp/20121203-1438-25351-6840/tiny_avatar.png +0 -0
- data/test/myshop/public/uploads/tmp/20121203-1438-25351-8084/avatar.png +0 -0
- data/test/myshop/public/uploads/tmp/20121203-1438-25351-8084/tiny_avatar.png +0 -0
- data/test/myshop/tmp/cache/assets/C20/3E0/sprockets%2F6272686c233069c041768dc99a62220b +0 -0
- data/test/myshop/tmp/cache/assets/C2F/840/sprockets%2F6307597ab57709835906888a54cab332 +0 -0
- data/test/myshop/tmp/cache/assets/C42/0A0/sprockets%2Fc3507fa0b5035933d865537bd4740310 +0 -0
- data/test/myshop/tmp/cache/assets/C47/520/sprockets%2F0dceec443917771d013062944f268311 +0 -0
- data/test/myshop/tmp/cache/assets/C51/620/sprockets%2F447611d767d7e61d6322546370a193af +0 -0
- data/test/myshop/tmp/cache/assets/C57/830/sprockets%2F0818c4536f6a69f5328b7f127045550e +0 -0
- data/test/myshop/tmp/cache/assets/C74/F00/sprockets%2Fc09995330494d994b784c482f881e7d7 +0 -0
- data/test/myshop/tmp/cache/assets/C76/FC0/sprockets%2F2712a3122a52fa28eb7682678b6400d9 +0 -0
- data/test/myshop/tmp/cache/assets/C7D/670/sprockets%2Fbd4255f99864127dbc6b7280521123a6 +0 -0
- data/test/myshop/tmp/cache/assets/C83/FB0/sprockets%2F8e73221616c6667d207ef9b2074606bd +0 -0
- data/test/myshop/tmp/cache/assets/C86/330/sprockets%2F4eb8530d606634060bfe419a89539c83 +0 -0
- data/test/myshop/tmp/cache/assets/C94/9A0/sprockets%2F082647e39249aef69bb64c139804967b +0 -0
- data/test/myshop/tmp/cache/assets/C96/2C0/sprockets%2Fccc09c0812dab32253f109e528141721 +0 -0
- data/test/myshop/tmp/cache/assets/C9D/E30/sprockets%2F78b987e096a8435f93f783b1664f4b60 +0 -0
- data/test/myshop/tmp/cache/assets/CA3/F60/sprockets%2F6513e45794e700c2e02c95a03bb50d75 +0 -0
- data/test/myshop/tmp/cache/assets/CAE/D60/sprockets%2F0b804fa342c193ef1978b00a8719807e +0 -0
- data/test/myshop/tmp/cache/assets/CAF/3D0/sprockets%2F7e7328e624d8047ec248e65e1c02f022 +0 -0
- data/test/myshop/tmp/cache/assets/CB2/A90/sprockets%2Fea73133259c16b046a77888aa77a53c6 +0 -0
- data/test/myshop/tmp/cache/assets/CB3/980/sprockets%2F747860914f389f22ca277b12d3e51d3c +0 -0
- data/test/myshop/tmp/cache/assets/CB5/8F0/sprockets%2F0575daed5b154b788eb72d8064466631 +0 -0
- data/test/myshop/tmp/cache/assets/CB9/840/sprockets%2Fd030178896ac6530c8375fc5d83782ad +0 -0
- data/test/myshop/tmp/cache/assets/CBD/480/sprockets%2F16696253922f95b0bfbe5029a49498ea +0 -0
- data/test/myshop/tmp/cache/assets/CBD/490/sprockets%2F9130d65760c969b6cfa4c327f56781c4 +0 -0
- data/test/myshop/tmp/cache/assets/CBD/CE0/sprockets%2F2c9388100fa246ffc774943319d6af67 +0 -0
- data/test/myshop/tmp/cache/assets/CC2/EE0/sprockets%2Fd87e8386917dd5fc540a4b28598911b1 +0 -0
- data/test/myshop/tmp/cache/assets/CC3/E60/sprockets%2F0c6e1f13250594731c60c00d21fbcb46 +0 -0
- data/test/myshop/tmp/cache/assets/CCA/000/sprockets%2Fd9f341b02315ce258ae14b27a6d25070 +0 -0
- data/test/myshop/tmp/cache/assets/CCA/280/sprockets%2F3453187e9b2e59676bec7b9c831d7395 +0 -0
- data/test/myshop/tmp/cache/assets/CCB/D90/sprockets%2F89860669c589fb1e18f8092558adc60b +0 -0
- data/test/myshop/tmp/cache/assets/CCD/1A0/sprockets%2Fc952c13381140b67cc1fb0b418369bc2 +0 -0
- data/test/myshop/tmp/cache/assets/CCD/470/sprockets%2Fa71a2c66435e2ab2bdc921d024687811 +0 -0
- data/test/myshop/tmp/cache/assets/CCF/960/sprockets%2F4139b533a0755eee22415882cd01ba7b +0 -0
- data/test/myshop/tmp/cache/assets/CD0/DE0/sprockets%2F6de169d6c66927d887590d3354177eee +0 -0
- data/test/myshop/tmp/cache/assets/CD3/A60/sprockets%2Fa2a143650cb9f51c947ee93e52a10461 +0 -0
- data/test/myshop/tmp/cache/assets/CD6/5B0/sprockets%2F4bf60ef0439108a06073b9c50cd7b817 +0 -0
- data/test/myshop/tmp/cache/assets/CD9/160/sprockets%2F062651b1d2c8b72cdff46e34058c2645 +0 -0
- data/test/myshop/tmp/cache/assets/CD9/420/sprockets%2Ff75c6841b46cad183040008384de8aa7 +0 -0
- data/test/myshop/tmp/cache/assets/CDE/8D0/sprockets%2F555b6677b24cbe7fe03b275eb0096307 +0 -0
- data/test/myshop/tmp/cache/assets/CE0/740/sprockets%2Fd7837981491a4eb711f21098acc49a2a +0 -0
- data/test/myshop/tmp/cache/assets/CEA/6E0/sprockets%2F92a120975ff4f91bcf5e37639523ef40 +0 -0
- data/test/myshop/tmp/cache/assets/CEB/670/sprockets%2F6a2e9b7338c55721eb636d3da649991b +0 -0
- data/test/myshop/tmp/cache/assets/CEB/FE0/sprockets%2F8d0f358193490b84617df5304c9e6ade +0 -0
- data/test/myshop/tmp/cache/assets/CED/220/sprockets%2Ff992264672f1ae94e3f90d3df0f04934 +0 -0
- data/test/myshop/tmp/cache/assets/CEF/D40/sprockets%2Fe23287b0d739bcd71c9d297c86d95207 +0 -0
- data/test/myshop/tmp/cache/assets/CF0/470/sprockets%2Fb86473b7dd59b458184b09209ffc8f04 +0 -0
- data/test/myshop/tmp/cache/assets/CF4/B60/sprockets%2F6f53ce7f80736b4c108c5a799853dd74 +0 -0
- data/test/myshop/tmp/cache/assets/CFA/9B0/sprockets%2Fcef7a3a252e4cec0343b64a501468251 +0 -0
- data/test/myshop/tmp/cache/assets/CFB/3B0/sprockets%2F83f0c4ee51108930d6d1c7a02411ace7 +0 -0
- data/test/myshop/tmp/cache/assets/CFE/FF0/sprockets%2F66da2b66aa02e7d3c854c019036130ff +0 -0
- data/test/myshop/tmp/cache/assets/D02/F10/sprockets%2F0dc664f09c6f2255ca44b38ae07342c1 +0 -0
- data/test/myshop/tmp/cache/assets/D03/B80/sprockets%2Fd682e282de115b528064150fea8c2c1d +0 -0
- data/test/myshop/tmp/cache/assets/D04/A40/sprockets%2F2119a3a04e53c224fb88fe71646f32ca +0 -0
- data/test/myshop/tmp/cache/assets/D0B/A80/sprockets%2Ff3464b1d20ee2562fce680c269243ad8 +0 -0
- data/test/myshop/tmp/cache/assets/D0D/340/sprockets%2Ff46a33a80a4d089529b5e3e3c47f4c05 +0 -0
- data/test/myshop/tmp/cache/assets/D10/5A0/sprockets%2Fce19e1808460fd67f2e80751bbe1a491 +0 -0
- data/test/myshop/tmp/cache/assets/D10/F10/sprockets%2F929ce581d09ef8aaed5566c0b1354061 +0 -0
- data/test/myshop/tmp/cache/assets/D14/1E0/sprockets%2F1ed72090d0906688a4d349ed4f7d01fe +0 -0
- data/test/myshop/tmp/cache/assets/D1F/7C0/sprockets%2F925f6ef4af9d564ba84f21762d16d456 +0 -0
- data/test/myshop/tmp/cache/assets/D27/1A0/sprockets%2F98a236449cdbe347049eff5872a9d72f +0 -0
- data/test/myshop/tmp/cache/assets/D28/8B0/sprockets%2F908b68a287fa2dd77450779d95b6bad9 +0 -0
- data/test/myshop/tmp/cache/assets/D2F/C10/sprockets%2F0224fa8eb416275601bbb06ee1197eec +0 -0
- data/test/myshop/tmp/cache/assets/D33/CC0/sprockets%2F9ad24304228467ab60ba2dc9fd624c6b +0 -0
- data/test/myshop/tmp/cache/assets/D36/5E0/sprockets%2F0d5b232077ed097ba8f7c27029c4cc3b +0 -0
- data/test/myshop/tmp/cache/assets/D38/1A0/sprockets%2Fa3c331e637a4172c04e0b96bff6f753d +0 -0
- data/test/myshop/tmp/cache/assets/D3D/F20/sprockets%2Faa7d732e89f3dac8a271d29b852b1074 +0 -0
- data/test/myshop/tmp/cache/assets/D3E/790/sprockets%2F9c4dcba69c3d1496a18010d06f8286dd +0 -0
- data/test/myshop/tmp/cache/assets/D42/360/sprockets%2F0b74d6da10b975d7ea4fa0b0466778f8 +0 -0
- data/test/myshop/tmp/cache/assets/D44/480/sprockets%2F83752178bf80c38e14fbd4ca487a6b4c +0 -0
- data/test/myshop/tmp/cache/assets/D45/EE0/sprockets%2F60e93ca9b4818e772e4f8f3e443ac1d0 +0 -0
- data/test/myshop/tmp/cache/assets/D48/3E0/sprockets%2F490442194945ae74d2fe4bfd6ac4d6d7 +0 -0
- data/test/myshop/tmp/cache/assets/D4C/930/sprockets%2F969bec2a5070b5388e6acf16e3d299a8 +0 -0
- data/test/myshop/tmp/cache/assets/D59/690/sprockets%2F43d9ed72bb97785a940468cde6ee5a49 +0 -0
- data/test/myshop/tmp/cache/assets/D60/F40/sprockets%2F60845114bfdfcf542eb113f3d71a44be +0 -0
- data/test/myshop/tmp/cache/assets/D63/3B0/sprockets%2F7b712b44a973300c47be7b6abccf8f11 +0 -0
- data/test/myshop/tmp/cache/assets/D64/A10/sprockets%2F11725b64858ef12e20e4255add3eebda +0 -0
- data/test/myshop/tmp/cache/assets/D68/1F0/sprockets%2F57fa200f88241de3a017ad1d8facf757 +0 -0
- data/test/myshop/tmp/cache/assets/D69/530/sprockets%2F0d6c156f7e61dc971ec15ebbd5b60083 +0 -0
- data/test/myshop/tmp/cache/assets/D6A/0F0/sprockets%2F6c8022cac929010a2ecfeddf2486358e +0 -0
- data/test/myshop/tmp/cache/assets/D6B/230/sprockets%2F3cdbe792f6989dac643303a3a5a37bc1 +0 -0
- data/test/myshop/tmp/cache/assets/D6C/6F0/sprockets%2F2395bceaae210b9d93c29cc99b425e33 +0 -0
- data/test/myshop/tmp/cache/assets/D6F/8F0/sprockets%2Fc1df3b489917bef846c2cb060ed1f461 +0 -0
- data/test/myshop/tmp/cache/assets/D6F/E80/sprockets%2F4e2cd34921d4df3e9a11485efcd486c0 +0 -0
- data/test/myshop/tmp/cache/assets/D70/900/sprockets%2Fd63e881ab0de98c29cf54ea223c550b8 +0 -0
- data/test/myshop/tmp/cache/assets/D71/540/sprockets%2F7f8b8f64991a2b2e80292fe40fccbc02 +0 -0
- data/test/myshop/tmp/cache/assets/D73/960/sprockets%2Fc7761c46821fe661d0c6efc5c43b2ec9 +0 -0
- data/test/myshop/tmp/cache/assets/D74/B60/sprockets%2F338cef2a60cc7e6b54f32fb367d3f079 +0 -0
- data/test/myshop/tmp/cache/assets/D74/BA0/sprockets%2F6b4b0586c85c9bcc95bf42b97ee0a640 +0 -0
- data/test/myshop/tmp/cache/assets/D76/220/sprockets%2F8748ace30a059bf844edf9e7a981b10b +0 -0
- data/test/myshop/tmp/cache/assets/D79/0F0/sprockets%2F583d27eb5454779d74bb4a542cbc9bfd +0 -0
- data/test/myshop/tmp/cache/assets/D79/560/sprockets%2F291d29fca6b52d24eb8c46abe642f988 +0 -0
- data/test/myshop/tmp/cache/assets/D7A/AC0/sprockets%2F7aee88eabcd2c427706f30d8246be895 +0 -0
- data/test/myshop/tmp/cache/assets/D7C/AC0/sprockets%2F337b95d7eb24bcdbf89a6f24549d07a8 +0 -0
- data/test/myshop/tmp/cache/assets/D80/AF0/sprockets%2Fa446ff43bef6cd1786b396a9cf1c6629 +0 -0
- data/test/myshop/tmp/cache/assets/D88/180/sprockets%2F207be29b481a71f20c28a2cedb214fcc +0 -0
- data/test/myshop/tmp/cache/assets/D88/B60/sprockets%2F7c60dd8a4002120f6b29e2ea2d6e2dbc +0 -0
- data/test/myshop/tmp/cache/assets/D8C/A10/sprockets%2Fe1f308086ac645200a8d8b5ace0aeab8 +0 -0
- data/test/myshop/tmp/cache/assets/D8D/180/sprockets%2Fbba7e4bce2a055fd0d657a331434d7f1 +0 -0
- data/test/myshop/tmp/cache/assets/D8F/DB0/sprockets%2Fecf0637ec0c9fbb80b4544005d50bed3 +0 -0
- data/test/myshop/tmp/cache/assets/D92/DC0/sprockets%2Fafd95769537ae5e1af0fef9b89c65939 +0 -0
- data/test/myshop/tmp/cache/assets/D94/E70/sprockets%2Fa68ba1495cce86c322ba2e10ef69b06c +0 -0
- data/test/myshop/tmp/cache/assets/D9A/0C0/sprockets%2F3c40cc90ffd21ec291e2c35875d9bdd1 +0 -0
- data/test/myshop/tmp/cache/assets/D9A/C20/sprockets%2F7fb9ca1a582053981b2eb92ddf385aaa +0 -0
- data/test/myshop/tmp/cache/assets/D9B/170/sprockets%2Fbbe525f1421628b638ecbe2a5e98de0c +0 -0
- data/test/myshop/tmp/cache/assets/D9F/6F0/sprockets%2Fa5bd870cfea0f92837c9a012d08c8d8c +0 -0
- data/test/myshop/tmp/cache/assets/DA1/B10/sprockets%2F369f6fcc30aff180c675e17fa3ae8c14 +0 -0
- data/test/myshop/tmp/cache/assets/DA4/0D0/sprockets%2F8ca4adf47d2f99cb9170050bd6c93f2f +0 -0
- data/test/myshop/tmp/cache/assets/DA4/230/sprockets%2Fb95808fc5741b496bc9dbf0ae5c05b4f +0 -0
- data/test/myshop/tmp/cache/assets/DA5/E20/sprockets%2Fcc968ead119b9ad755c6dd6d9c320b35 +0 -0
- data/test/myshop/tmp/cache/assets/DAF/4C0/sprockets%2F9577d946bd8238bd42a8eedcc457ac7a +0 -0
- data/test/myshop/tmp/cache/assets/DB3/C60/sprockets%2Fd2a33078bdd6b3d5be799b7ef4378fd9 +0 -0
- data/test/myshop/tmp/cache/assets/DBA/670/sprockets%2F3894b7598c9eb4c6d66880eedd6baeb5 +0 -0
- data/test/myshop/tmp/cache/assets/DBA/C70/sprockets%2Ff287c2f76af44e4685ceb8986decb65b +0 -0
- data/test/myshop/tmp/cache/assets/DBC/1D0/sprockets%2F715fba3f00362f334beaae3ba7e54be6 +0 -0
- data/test/myshop/tmp/cache/assets/DBF/910/sprockets%2Ff18470e1fb2e3e2f73f3aaafdec44130 +0 -0
- data/test/myshop/tmp/cache/assets/DC0/180/sprockets%2F53acffde562a11301dffae236b375e3e +0 -0
- data/test/myshop/tmp/cache/assets/DC2/810/sprockets%2Fec901b5b7cb5f4aaa770f42a6f107a9d +0 -0
- data/test/myshop/tmp/cache/assets/DC8/6B0/sprockets%2F14babd3cd6dfff04d9f230689380da3b +0 -0
- data/test/myshop/tmp/cache/assets/DCC/360/sprockets%2Fb9c6731ecf1d521a276ea60d8dcecc48 +0 -0
- data/test/myshop/tmp/cache/assets/DCC/690/sprockets%2Facc83ee53fd3fe6bf209b0d407924da6 +0 -0
- data/test/myshop/tmp/cache/assets/DCF/1C0/sprockets%2F42296eec1be44d5af0efefe563414eb6 +0 -0
- data/test/myshop/tmp/cache/assets/DCF/530/sprockets%2F37a8adbab8e950b553e7fb50cc61c9d6 +0 -0
- data/test/myshop/tmp/cache/assets/DD0/040/sprockets%2Fd7e8eb1efb4a3a37e393de0171f9cd53 +0 -0
- data/test/myshop/tmp/cache/assets/DD2/B60/sprockets%2F9b5fb07d9588116cd8c67baadba8a36a +0 -0
- data/test/myshop/tmp/cache/assets/DD4/C20/sprockets%2F9cb3062fed4fad2209b96b45fc5ef7d4 +0 -0
- data/test/myshop/tmp/cache/assets/DDD/DF0/sprockets%2F194cbc068a6a6e7ff4a56f9cfec8415e +0 -0
- data/test/myshop/tmp/cache/assets/DDF/E20/sprockets%2F5fa8f2be7f1ba46b7e9f8b7329f6b19a +0 -0
- data/test/myshop/tmp/cache/assets/DE2/810/sprockets%2Fe5508b4e8589f72fa83fe3afe3a57afd +0 -0
- data/test/myshop/tmp/cache/assets/DF2/B80/sprockets%2Faea5e110a5b5445795aee4eb3f1cfd2e +0 -0
- data/test/myshop/tmp/cache/assets/DF6/BD0/sprockets%2F7bc0d205c243a5d6eaf68cefb73fa83a +0 -0
- data/test/myshop/tmp/cache/assets/DF8/AC0/sprockets%2Fc823b0d42a7acf73faa3f47ccee59d15 +0 -0
- data/test/myshop/tmp/cache/assets/DFB/4C0/sprockets%2Fc17634f786d8dacfc7da08aa3abaf309 +0 -0
- data/test/myshop/tmp/cache/assets/DFF/CE0/sprockets%2F5b09f3df6587fa0dd0b8bccae956f0e0 +0 -0
- data/test/myshop/tmp/cache/assets/E09/240/sprockets%2F379facffa55119efe51738ccca58c1ef +0 -0
- data/test/myshop/tmp/cache/assets/E20/890/sprockets%2Fc9bb40cca767b5a5ac7b264ecc7bad06 +0 -0
- data/test/myshop/tmp/cache/assets/E23/C30/sprockets%2F6d488fd35bcd6d9b0f1deaac27b1a11e +0 -0
- data/test/myshop/tmp/cache/assets/E4E/350/sprockets%2F1e4de40cd11c8ba8caea57b2ca7e16ef +0 -0
- data/test/myshop/tmp/cache/assets/E58/580/sprockets%2Fc3d000f299e5be8db3ddad3aed3bf9c5 +0 -0
- data/test/myshop/tmp/cache/assets/E59/F50/sprockets%2Ff321b3ce47ce73ec1cfead3f39aef0a9 +0 -0
- data/test/myshop/tmp/cache/assets/E5F/C60/sprockets%2Fb95ce7dcf32be0b3cb96ea0b9d75efd2 +0 -0
- data/test/myshop/tmp/cache/assets/E8D/140/sprockets%2F470beb3daed0e63cf3c7f69dce17ebec +0 -0
- data/test/myshop/tmp/cache/assets/E95/E90/sprockets%2Ffbd9cdd1beaf5c67c528a97cbca356fe +0 -0
- data/test/myshop/tmp/cache/assets/EF1/C70/sprockets%2Fd3b9dcddcbc0dabeb498be16d98f3dcf +0 -0
- data/test/myshop/tmp/cache/sass/92f3bea9cf025f158dff5471ebe43f2066838092/cart.css.scssc +0 -0
- data/test/myshop/tmp/cache/sass/92f3bea9cf025f158dff5471ebe43f2066838092/cart_button.css.scssc +0 -0
- data/test/myshop/tmp/cache/sass/92f3bea9cf025f158dff5471ebe43f2066838092/creditcard.css.scssc +0 -0
- data/test/myshop/tmp/cache/sass/92f3bea9cf025f158dff5471ebe43f2066838092/custom.css.scssc +0 -0
- data/test/test_helper.rb +3 -0
- data/test/unit/country_shipping_zone_test.rb +1 -1
- data/test/unit/custom_field_answer/field_test.rb +1 -1
- data/test/unit/product_test.rb +3 -3
- data/test/unit/shipping_method_test.rb +1 -1
- metadata +334 -51
- data/app/assets/javascripts/admin/products/edit.js.coffee +0 -32
- data/lib/nimbleshop/sampledata/data.rb +0 -249
- data/lib/nimbleshop/sampledata/pictures/product1/pic1.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product2/pic1.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product2/pic2.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product3/pic1.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product3/pic2.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product3/pic3.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product3/pic4.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product3/pic5.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product4/pic1.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product4/pic2.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product5/pic1.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product5/pic2.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product6/pic1.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product6/pic10.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product6/pic11.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product6/pic12.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product6/pic13.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product6/pic14.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product6/pic15.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product6/pic16.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product6/pic17.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product6/pic2.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product6/pic3.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product6/pic4.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product6/pic5.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product6/pic6.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product6/pic7.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product6/pic8.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product6/pic9.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product7/pic1.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product7/pic2.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product7/pic3.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product8/pic1.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product8/pic2.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product8/pic3.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product8/pic4.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product8/pic5.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product8/pic6.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product8/pic7.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product8/pic8.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product9/pic1.jpg +0 -0
- data/lib/nimbleshop/sampledata/pictures/product9/pic2.jpg +0 -0
@@ -2,7 +2,7 @@ require "test_helper"
|
|
2
2
|
|
3
3
|
class PaymentMethodsAcceptanceTest < ActionDispatch::IntegrationTest
|
4
4
|
|
5
|
-
test "
|
5
|
+
test "page should come up fine when no payment method is configured" do
|
6
6
|
PaymentMethod.delete_all
|
7
7
|
visit admin_path
|
8
8
|
click_link 'Payment methods'
|
@@ -16,22 +16,22 @@ class PaymentMethodsControllerTest < ActionController::TestCase
|
|
16
16
|
|
17
17
|
tests Admin::PaymentMethodsController
|
18
18
|
|
19
|
-
test "
|
19
|
+
test "disabling a payment method" do
|
20
20
|
payment_method = PaymentMethod.first
|
21
21
|
assert payment_method.enabled
|
22
22
|
|
23
23
|
put :disable, id: payment_method.permalink
|
24
24
|
|
25
|
-
|
25
|
+
assert_response :redirect
|
26
26
|
refute payment_method.reload.enabled
|
27
27
|
end
|
28
28
|
|
29
|
-
test "
|
29
|
+
test "enabling a payment method" do
|
30
30
|
payment_method = PaymentMethod.first.tap {|r| r.update_attributes! enabled: false }
|
31
31
|
|
32
32
|
put :enable, id: payment_method.permalink
|
33
33
|
|
34
|
-
|
34
|
+
assert_response :redirect
|
35
35
|
assert payment_method.reload.enabled
|
36
36
|
end
|
37
37
|
end
|
@@ -13,7 +13,7 @@ class ProductsAcceptanceTest < ActionDispatch::IntegrationTest
|
|
13
13
|
fill_in 'Price', with: '45.99'
|
14
14
|
end
|
15
15
|
|
16
|
-
test "
|
16
|
+
test "creating a new product without image" do
|
17
17
|
click_button 'Submit'
|
18
18
|
assert_equal 0, Product.last.pictures.size
|
19
19
|
assert_equal 0, page.all('ul.product_pictures li').count
|
@@ -21,6 +21,21 @@ class ProductsAcceptanceTest < ActionDispatch::IntegrationTest
|
|
21
21
|
assert page.has_content?('the very wicked name for product')
|
22
22
|
end
|
23
23
|
|
24
|
+
test "editing a product" do
|
25
|
+
create(:product, name: 'test')
|
26
|
+
visit admin_path
|
27
|
+
click_link 'Products'
|
28
|
+
click_link 'Edit'
|
29
|
+
|
30
|
+
fill_in 'Name', with: 'the very wicked name for product'
|
31
|
+
fill_in 'Description', with: 'test desc for user'
|
32
|
+
fill_in 'Price', with: '45.99'
|
33
|
+
click_button 'Submit'
|
34
|
+
|
35
|
+
assert page.has_content?('Successfully updated')
|
36
|
+
assert page.has_content?('the very wicked name for product')
|
37
|
+
end
|
38
|
+
|
24
39
|
test 'editing a product with picture' do
|
25
40
|
create :picture
|
26
41
|
visit admin_path
|
@@ -30,7 +45,7 @@ class ProductsAcceptanceTest < ActionDispatch::IntegrationTest
|
|
30
45
|
assert_equal 1, page.all('ul.product_pictures li').count
|
31
46
|
end
|
32
47
|
|
33
|
-
test "
|
48
|
+
test "product creation with wrong params" do
|
34
49
|
visit admin_path
|
35
50
|
click_link 'Products'
|
36
51
|
click_link 'add_new_product'
|
@@ -48,38 +63,8 @@ class ProductsAcceptanceTest < ActionDispatch::IntegrationTest
|
|
48
63
|
refute page.has_content?("Price can't be blank")
|
49
64
|
end
|
50
65
|
|
51
|
-
test "
|
52
|
-
create(:product, name: 'ipad99')
|
53
|
-
visit admin_path
|
54
|
-
click_link 'Products'
|
55
|
-
click_link 'Delete'
|
56
|
-
assert page.has_content?("Successfully deleted")
|
57
|
-
refute page.has_content?('ipad99')
|
58
|
-
end
|
59
|
-
|
60
|
-
end
|
61
|
-
|
62
|
-
class ProductsAcceptance2Test < ActionDispatch::IntegrationTest
|
63
|
-
|
64
|
-
setup do
|
66
|
+
test "product update with wrong params" do
|
65
67
|
create(:product, name: 'test')
|
66
|
-
end
|
67
|
-
|
68
|
-
test "should edit a product" do
|
69
|
-
visit admin_path
|
70
|
-
click_link 'Products'
|
71
|
-
click_link 'Edit'
|
72
|
-
|
73
|
-
fill_in 'Name', with: 'the very wicked name for product'
|
74
|
-
fill_in 'Description', with: 'test desc for user'
|
75
|
-
fill_in 'Price', with: '45.99'
|
76
|
-
click_button 'Submit'
|
77
|
-
|
78
|
-
assert page.has_content?('Successfully updated')
|
79
|
-
assert page.has_content?('the very wicked name for product')
|
80
|
-
end
|
81
|
-
|
82
|
-
test "should not allow to save product with wrong params" do
|
83
68
|
visit admin_path
|
84
69
|
click_link 'Products'
|
85
70
|
click_link 'Edit'
|
@@ -94,6 +79,15 @@ class ProductsAcceptance2Test < ActionDispatch::IntegrationTest
|
|
94
79
|
assert page.has_content?("Price is not a number")
|
95
80
|
end
|
96
81
|
|
82
|
+
test "deletion a product" do
|
83
|
+
create(:product, name: 'ipad99')
|
84
|
+
visit admin_path
|
85
|
+
click_link 'Products'
|
86
|
+
click_link 'Delete'
|
87
|
+
assert page.has_content?("Successfully deleted")
|
88
|
+
refute page.has_content?('ipad99')
|
89
|
+
end
|
90
|
+
|
97
91
|
test "show product" do
|
98
92
|
create(:product, name: 'ipad', description: 'the description', price: 46.99)
|
99
93
|
visit admin_path
|
@@ -102,4 +96,5 @@ class ProductsAcceptance2Test < ActionDispatch::IntegrationTest
|
|
102
96
|
|
103
97
|
assert page.has_content?("Edit product")
|
104
98
|
end
|
99
|
+
|
105
100
|
end
|
@@ -6,7 +6,7 @@ class ShippingMethodAcceptanceTest < ActionDispatch::IntegrationTest
|
|
6
6
|
create(:country_shipping_zone, country_code: code)
|
7
7
|
end
|
8
8
|
|
9
|
-
test "
|
9
|
+
test "adding a new shipping method to country" do
|
10
10
|
bef = ShippingZone.count
|
11
11
|
shipping_zone = create_shipping_zone("US")
|
12
12
|
visit new_admin_shipping_zone_shipping_method_path(shipping_zone)
|
@@ -17,20 +17,20 @@ class ShippingMethodAcceptanceTest < ActionDispatch::IntegrationTest
|
|
17
17
|
fill_in "shipping_method_base_price", with: "10"
|
18
18
|
click_button('Submit')
|
19
19
|
|
20
|
-
skip "
|
20
|
+
skip "travis ci fails but local tests pass" do
|
21
21
|
assert_sanitized_equal 'Ground Shipping', find('table tr td').text
|
22
22
|
assert_equal 58, ShippingZone.count - bef
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
-
test "
|
26
|
+
test "editing shipping method to country" do
|
27
27
|
shipping_zone = create_shipping_zone("US")
|
28
28
|
shipping_method = create(:country_shipping_method, shipping_zone: shipping_zone)
|
29
29
|
visit edit_admin_shipping_zone_shipping_method_path(shipping_method.shipping_zone, shipping_method)
|
30
30
|
fill_in "shipping_method_maximum_order_amount", with: "40"
|
31
31
|
click_button('Submit')
|
32
32
|
|
33
|
-
skip "
|
33
|
+
skip "travis ci fails but local tests pass" do
|
34
34
|
assert page.has_content?('Successfully updated')
|
35
35
|
end
|
36
36
|
end
|
@@ -2,7 +2,7 @@ require 'test_helper'
|
|
2
2
|
|
3
3
|
class ShippingZonesAcceptanceTest < ActionDispatch::IntegrationTest
|
4
4
|
|
5
|
-
test "
|
5
|
+
test "creating a new shipping zone and should add state level shipping methods" do
|
6
6
|
visit admin_path
|
7
7
|
click_link 'Shipping zones'
|
8
8
|
click_link 'add_new_shipping_zone'
|
@@ -6,7 +6,7 @@ class ShopsAcceptanceTest < ActionDispatch::IntegrationTest
|
|
6
6
|
create(:shop)
|
7
7
|
end
|
8
8
|
|
9
|
-
test "
|
9
|
+
test "editing shop" do
|
10
10
|
visit admin_path
|
11
11
|
click_link 'Shop configuration'
|
12
12
|
assert page.has_content?('Shop configuration')
|
@@ -22,7 +22,7 @@ class ShopsAcceptanceTest < ActionDispatch::IntegrationTest
|
|
22
22
|
assert page.has_content?('Shop was successfully updated')
|
23
23
|
end
|
24
24
|
|
25
|
-
test "
|
25
|
+
test "editing shop with validtion error" do
|
26
26
|
visit admin_path
|
27
27
|
click_link 'Shop configuration'
|
28
28
|
fill_in 'Name', with: ''
|
data/test/myshop/Gemfile
CHANGED
@@ -4,4 +4,4 @@
|
|
4
4
|
# If you change this key, all old signed cookies will become invalid!
|
5
5
|
# Make sure the secret is at least 30 characters and all random,
|
6
6
|
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
-
Myshop::Application.config.secret_token = '
|
7
|
+
Myshop::Application.config.secret_token = 'bc0970b5125bfa57ceee0e84eb09f0cc7a18118e2691ac637c3b0c48eef204911cd6f2394edff29d0851bd89f49ce5dc497c67dea2ddf0203b914a628800a1f8'
|
@@ -8,10 +8,10 @@ else
|
|
8
8
|
|
9
9
|
ActionMailer::Base.delivery_method = :smtp
|
10
10
|
ActionMailer::Base.smtp_settings = {
|
11
|
-
user_name: Nimbleshop.config.
|
12
|
-
password: Nimbleshop.config.
|
13
|
-
address:
|
14
|
-
port:
|
11
|
+
user_name: Nimbleshop.config.mailtrap.username,
|
12
|
+
password: Nimbleshop.config.mailtrap.password,
|
13
|
+
address: Nimbleshop.config.mailtrap.address,
|
14
|
+
port: Nimbleshop.config.mailtrap.port,
|
15
15
|
authentication: :plain }
|
16
16
|
|
17
17
|
end
|
@@ -24,9 +24,11 @@ common:
|
|
24
24
|
secret_access_key: <%= ENV['S3_SECRET_ACCESS_KEY'] %>
|
25
25
|
bucket_name: <%= ENV['S3_BUCKET_NAME'] %>
|
26
26
|
|
27
|
-
|
27
|
+
mailtrap:
|
28
28
|
username: <%= ENV['MAILTRAPIO_USERNAME'] || 'nimbleshop' %>
|
29
29
|
password: <%= ENV['MAILTRAPIO_PASSWORD'] || 'f42c2934fbc2e229' %>
|
30
|
+
address: mailtrap.railsware.com
|
31
|
+
port: 2525
|
30
32
|
|
31
33
|
development:
|
32
34
|
use_s3: false
|
Binary file
|
@@ -183,7 +183,6 @@ class CreateInitialTables < ActiveRecord::Migration
|
|
183
183
|
t.string "status", :default => "active", :null => false
|
184
184
|
t.text "description"
|
185
185
|
t.decimal "price", :precision => 8, :scale => 2, :null => false
|
186
|
-
t.boolean "new", :default => false, :null => false
|
187
186
|
t.string "permalink", :null => false
|
188
187
|
t.datetime "created_at", :null => false
|
189
188
|
t.datetime "updated_at", :null => false
|
data/test/myshop/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20121129183432) do
|
15
15
|
|
16
16
|
create_table "addresses", :force => true do |t|
|
17
17
|
t.string "type"
|
@@ -194,7 +194,6 @@ ActiveRecord::Schema.define(:version => 20121108022908) do
|
|
194
194
|
t.string "status", :default => "active", :null => false
|
195
195
|
t.text "description"
|
196
196
|
t.decimal "price", :precision => 8, :scale => 2, :null => false
|
197
|
-
t.boolean "new", :default => false, :null => false
|
198
197
|
t.string "permalink", :null => false
|
199
198
|
t.datetime "created_at", :null => false
|
200
199
|
t.datetime "updated_at", :null => false
|
data/test/myshop/db/test.sqlite3
CHANGED
Binary file
|