mechanize_store 0.0.8 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +8 -8
  2. data/README.rdoc +3 -11
  3. data/app/controllers/mechanize_store/orders_controller.rb +2 -2
  4. data/app/models/mechanize_store/order.rb +24 -3
  5. data/app/models/mechanize_store/payment.rb +67 -4
  6. data/app/models/mechanize_store/payment_type.rb +2 -0
  7. data/app/views/mechanize_store/orders/index.html.erb +4 -4
  8. data/config/locales/mechanize_store.pt-BR.yml +28 -8
  9. data/db/migrate/20140602124615_rename_columns.rb +7 -0
  10. data/lib/mechanize_store/version.rb +1 -1
  11. data/spec/controllers/mechanize_store/orders_controller_spec.rb +2 -4
  12. data/spec/dummy/db/development.sqlite3 +0 -0
  13. data/spec/dummy/db/schema.rb +7 -25
  14. data/spec/dummy/db/test.sqlite3 +0 -0
  15. data/spec/dummy/log/development.log +124 -0
  16. data/spec/dummy/log/test.log +4733 -0
  17. data/spec/dummy/public/photos/1/medium.png +0 -0
  18. data/spec/dummy/public/photos/1/thumb.png +0 -0
  19. data/spec/factories/{store_flags.rb → mechanize_store_flags.rb} +0 -0
  20. data/spec/factories/{store_payments.rb → mechanize_store_payments.rb} +0 -0
  21. data/spec/factories/{store_product_categories.rb → mechanize_store_product_categories.rb} +0 -0
  22. data/spec/factories/{store_product_photos.rb → mechanize_store_product_photos.rb} +0 -0
  23. data/spec/factories/{store_stores.rb → mechanize_store_stores.rb} +0 -0
  24. data/spec/models/{store → mechanize_store}/flag_spec.rb +0 -0
  25. data/spec/models/{store → mechanize_store}/freight_spec.rb +0 -0
  26. data/spec/models/{store → mechanize_store}/order_spec.rb +0 -0
  27. data/spec/models/{store → mechanize_store}/payment_spec.rb +0 -0
  28. data/spec/models/{store → mechanize_store}/product_category_spec.rb +0 -0
  29. data/spec/models/{store → mechanize_store}/product_photo_spec.rb +0 -0
  30. data/spec/models/{store → mechanize_store}/product_spec.rb +0 -0
  31. data/spec/models/{store → mechanize_store}/store_spec.rb +0 -0
  32. metadata +29 -103
  33. data/app/controllers/mechanize_store/order_statuses_controller.rb +0 -77
  34. data/app/controllers/mechanize_store/payment_statuses_controller.rb +0 -77
  35. data/app/controllers/mechanize_store/payment_types_controller.rb +0 -77
  36. data/app/models/mechanize_store/order_status.rb +0 -10
  37. data/app/models/mechanize_store/payment_status.rb +0 -20
  38. data/app/views/mechanize_store/order_statuses/_form.html.erb +0 -11
  39. data/app/views/mechanize_store/order_statuses/edit.html.erb +0 -12
  40. data/app/views/mechanize_store/order_statuses/index.html.erb +0 -46
  41. data/app/views/mechanize_store/order_statuses/new.html.erb +0 -9
  42. data/app/views/mechanize_store/order_statuses/show.html.erb +0 -15
  43. data/app/views/mechanize_store/payment_statuses/_form.html.erb +0 -11
  44. data/app/views/mechanize_store/payment_statuses/edit.html.erb +0 -12
  45. data/app/views/mechanize_store/payment_statuses/index.html.erb +0 -46
  46. data/app/views/mechanize_store/payment_statuses/new.html.erb +0 -9
  47. data/app/views/mechanize_store/payment_statuses/show.html.erb +0 -15
  48. data/app/views/mechanize_store/payment_types/_form.html.erb +0 -11
  49. data/app/views/mechanize_store/payment_types/edit.html.erb +0 -12
  50. data/app/views/mechanize_store/payment_types/index.html.erb +0 -46
  51. data/app/views/mechanize_store/payment_types/new.html.erb +0 -9
  52. data/app/views/mechanize_store/payment_types/show.html.erb +0 -15
  53. data/db/migrate/20140401203246_create_mechanize_store_order_statuses.rb +0 -9
  54. data/db/migrate/20140402140318_create_mechanize_store_payment_statuses.rb +0 -9
  55. data/db/migrate/20140402140325_create_mechanize_store_payment_types.rb +0 -9
  56. data/spec/controllers/mechanize_store/order_statuses_controller_spec.rb +0 -138
  57. data/spec/controllers/mechanize_store/payment_statuses_controller_spec.rb +0 -139
  58. data/spec/controllers/mechanize_store/payment_types_controller_spec.rb +0 -139
  59. data/spec/dummy/db/migrate/20140508135827_create_mechanize_store_freights.mechanize_store.rb +0 -13
  60. data/spec/dummy/db/migrate/20140508135828_create_mechanize_store_order_statuses.mechanize_store.rb +0 -10
  61. data/spec/dummy/db/migrate/20140508135829_create_mechanize_store_payment_statuses.mechanize_store.rb +0 -10
  62. data/spec/dummy/db/migrate/20140508135830_create_mechanize_store_payment_types.mechanize_store.rb +0 -10
  63. data/spec/dummy/db/migrate/20140508135831_create_mechanize_store_payments.mechanize_store.rb +0 -16
  64. data/spec/dummy/db/migrate/20140508135832_create_mechanize_store_flags.mechanize_store.rb +0 -10
  65. data/spec/dummy/db/migrate/20140508135833_create_mechanize_store_products.mechanize_store.rb +0 -17
  66. data/spec/dummy/db/migrate/20140508135834_create_mechanize_store_product_photos.mechanize_store.rb +0 -11
  67. data/spec/dummy/db/migrate/20140508135835_create_mechanize_store_orders.mechanize_store.rb +0 -12
  68. data/spec/dummy/db/migrate/20140508135836_create_mechanize_store_product_categories.mechanize_store.rb +0 -11
  69. data/spec/dummy/db/migrate/20140508135837_add_width_to_mechanize_store_product.mechanize_store.rb +0 -7
  70. data/spec/dummy/db/migrate/20140508135838_create_mechanize_store_order_items.mechanize_store.rb +0 -13
  71. data/spec/dummy/db/migrate/20140508135839_add_payment_type_id_to_payment.mechanize_store.rb +0 -7
  72. data/spec/dummy/db/migrate/20140508135840_add_time_to_freight.mechanize_store.rb +0 -6
  73. data/spec/factories/mechanize_store_payment_types.rb +0 -7
  74. data/spec/factories/store_order_statuses.rb +0 -7
  75. data/spec/factories/store_payment_statuses.rb +0 -7
  76. data/spec/models/store/order_status_spec.rb +0 -7
  77. data/spec/models/store/payment_status_spec.rb +0 -7
  78. data/spec/models/store/payment_type_spec.rb +0 -7
  79. data/spec/routing/store/order_statuses_routing_spec.rb +0 -39
  80. data/spec/routing/store/payment_statuses_routing_spec.rb +0 -38
  81. data/spec/routing/store/payment_types_routing_spec.rb +0 -38
@@ -1,6 +0,0 @@
1
- # This migration comes from mechanize_store (originally 20140417200520)
2
- class AddTimeToFreight < ActiveRecord::Migration
3
- def change
4
- add_column :mechanize_store_freights, :delivery_time, :integer
5
- end
6
- end
@@ -1,7 +0,0 @@
1
- # Read about factories at https://github.com/thoughtbot/factory_girl
2
-
3
- FactoryGirl.define do
4
- factory :mechanize_store_payment_type, :class => MechanizeStore::PaymentType do
5
- name "MyString"
6
- end
7
- end
@@ -1,7 +0,0 @@
1
- # Read about factories at https://github.com/thoughtbot/factory_girl
2
-
3
- FactoryGirl.define do
4
- factory :mechanize_store_order_status, :class => MechanizeStore::OrderStatus do
5
- name "MyString"
6
- end
7
- end
@@ -1,7 +0,0 @@
1
- # Read about factories at https://github.com/thoughtbot/factory_girl
2
-
3
- FactoryGirl.define do
4
- factory :mechanize_store_payment_status, :class => 'PaymentStatus' do
5
- name "MyString"
6
- end
7
- end
@@ -1,7 +0,0 @@
1
- require 'spec_helper'
2
-
3
- module MechanizeStore
4
- describe OrderStatus do
5
-
6
- end
7
- end
@@ -1,7 +0,0 @@
1
- require 'spec_helper'
2
-
3
- module MechanizeStore
4
- describe PaymentStatus do
5
-
6
- end
7
- end
@@ -1,7 +0,0 @@
1
- require 'spec_helper'
2
-
3
- module MechanizeStore
4
- describe PaymentType do
5
-
6
- end
7
- end
@@ -1,39 +0,0 @@
1
- require "spec_helper"
2
-
3
- module MechanizeStore
4
- describe OrderStatusesController do
5
- routes { MechanizeStore::Engine.routes }
6
-
7
- describe "routing" do
8
-
9
- it "routes to #index" do
10
- get("/order_statuses").should route_to("mechanize_store/order_statuses#index")
11
- end
12
-
13
- it "routes to #new" do
14
- get("/order_statuses/new").should route_to("mechanize_store/order_statuses#new")
15
- end
16
-
17
- it "routes to #show" do
18
- get("/order_statuses/1").should route_to("mechanize_store/order_statuses#show", :id => "1")
19
- end
20
-
21
- it "routes to #edit" do
22
- get("/order_statuses/1/edit").should route_to("mechanize_store/order_statuses#edit", :id => "1")
23
- end
24
-
25
- it "routes to #create" do
26
- post("/order_statuses").should route_to("mechanize_store/order_statuses#create")
27
- end
28
-
29
- it "routes to #update" do
30
- put("/order_statuses/1").should route_to("mechanize_store/order_statuses#update", :id => "1")
31
- end
32
-
33
- it "routes to #destroy" do
34
- delete("/order_statuses/1").should route_to("mechanize_store/order_statuses#destroy", :id => "1")
35
- end
36
-
37
- end
38
- end
39
- end
@@ -1,38 +0,0 @@
1
- require "spec_helper"
2
-
3
- module MechanizeStore
4
- describe PaymentStatusesController do
5
- describe "routing" do
6
- routes { MechanizeStore::Engine.routes }
7
-
8
- it "routes to #index" do
9
- get("/payment_statuses").should route_to("mechanize_store/payment_statuses#index")
10
- end
11
-
12
- it "routes to #new" do
13
- get("/payment_statuses/new").should route_to("mechanize_store/payment_statuses#new")
14
- end
15
-
16
- it "routes to #show" do
17
- get("/payment_statuses/1").should route_to("mechanize_store/payment_statuses#show", :id => "1")
18
- end
19
-
20
- it "routes to #edit" do
21
- get("/payment_statuses/1/edit").should route_to("mechanize_store/payment_statuses#edit", :id => "1")
22
- end
23
-
24
- it "routes to #create" do
25
- post("/payment_statuses").should route_to("mechanize_store/payment_statuses#create")
26
- end
27
-
28
- it "routes to #update" do
29
- put("/payment_statuses/1").should route_to("mechanize_store/payment_statuses#update", :id => "1")
30
- end
31
-
32
- it "routes to #destroy" do
33
- delete("/payment_statuses/1").should route_to("mechanize_store/payment_statuses#destroy", :id => "1")
34
- end
35
-
36
- end
37
- end
38
- end
@@ -1,38 +0,0 @@
1
- require "spec_helper"
2
-
3
- module MechanizeStore
4
- describe PaymentTypesController do
5
- describe "routing" do
6
- routes { MechanizeStore::Engine.routes }
7
-
8
- it "routes to #index" do
9
- get("/payment_types").should route_to("mechanize_store/payment_types#index")
10
- end
11
-
12
- it "routes to #new" do
13
- get("/payment_types/new").should route_to("mechanize_store/payment_types#new")
14
- end
15
-
16
- it "routes to #show" do
17
- get("/payment_types/1").should route_to("mechanize_store/payment_types#show", :id => "1")
18
- end
19
-
20
- it "routes to #edit" do
21
- get("/payment_types/1/edit").should route_to("mechanize_store/payment_types#edit", :id => "1")
22
- end
23
-
24
- it "routes to #create" do
25
- post("/payment_types").should route_to("mechanize_store/payment_types#create")
26
- end
27
-
28
- it "routes to #update" do
29
- put("/payment_types/1").should route_to("mechanize_store/payment_types#update", :id => "1")
30
- end
31
-
32
- it "routes to #destroy" do
33
- delete("/payment_types/1").should route_to("mechanize_store/payment_types#destroy", :id => "1")
34
- end
35
-
36
- end
37
- end
38
- end