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.
- checksums.yaml +8 -8
- data/README.rdoc +3 -11
- data/app/controllers/mechanize_store/orders_controller.rb +2 -2
- data/app/models/mechanize_store/order.rb +24 -3
- data/app/models/mechanize_store/payment.rb +67 -4
- data/app/models/mechanize_store/payment_type.rb +2 -0
- data/app/views/mechanize_store/orders/index.html.erb +4 -4
- data/config/locales/mechanize_store.pt-BR.yml +28 -8
- data/db/migrate/20140602124615_rename_columns.rb +7 -0
- data/lib/mechanize_store/version.rb +1 -1
- data/spec/controllers/mechanize_store/orders_controller_spec.rb +2 -4
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +7 -25
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +124 -0
- data/spec/dummy/log/test.log +4733 -0
- data/spec/dummy/public/photos/1/medium.png +0 -0
- data/spec/dummy/public/photos/1/thumb.png +0 -0
- data/spec/factories/{store_flags.rb → mechanize_store_flags.rb} +0 -0
- data/spec/factories/{store_payments.rb → mechanize_store_payments.rb} +0 -0
- data/spec/factories/{store_product_categories.rb → mechanize_store_product_categories.rb} +0 -0
- data/spec/factories/{store_product_photos.rb → mechanize_store_product_photos.rb} +0 -0
- data/spec/factories/{store_stores.rb → mechanize_store_stores.rb} +0 -0
- data/spec/models/{store → mechanize_store}/flag_spec.rb +0 -0
- data/spec/models/{store → mechanize_store}/freight_spec.rb +0 -0
- data/spec/models/{store → mechanize_store}/order_spec.rb +0 -0
- data/spec/models/{store → mechanize_store}/payment_spec.rb +0 -0
- data/spec/models/{store → mechanize_store}/product_category_spec.rb +0 -0
- data/spec/models/{store → mechanize_store}/product_photo_spec.rb +0 -0
- data/spec/models/{store → mechanize_store}/product_spec.rb +0 -0
- data/spec/models/{store → mechanize_store}/store_spec.rb +0 -0
- metadata +29 -103
- data/app/controllers/mechanize_store/order_statuses_controller.rb +0 -77
- data/app/controllers/mechanize_store/payment_statuses_controller.rb +0 -77
- data/app/controllers/mechanize_store/payment_types_controller.rb +0 -77
- data/app/models/mechanize_store/order_status.rb +0 -10
- data/app/models/mechanize_store/payment_status.rb +0 -20
- data/app/views/mechanize_store/order_statuses/_form.html.erb +0 -11
- data/app/views/mechanize_store/order_statuses/edit.html.erb +0 -12
- data/app/views/mechanize_store/order_statuses/index.html.erb +0 -46
- data/app/views/mechanize_store/order_statuses/new.html.erb +0 -9
- data/app/views/mechanize_store/order_statuses/show.html.erb +0 -15
- data/app/views/mechanize_store/payment_statuses/_form.html.erb +0 -11
- data/app/views/mechanize_store/payment_statuses/edit.html.erb +0 -12
- data/app/views/mechanize_store/payment_statuses/index.html.erb +0 -46
- data/app/views/mechanize_store/payment_statuses/new.html.erb +0 -9
- data/app/views/mechanize_store/payment_statuses/show.html.erb +0 -15
- data/app/views/mechanize_store/payment_types/_form.html.erb +0 -11
- data/app/views/mechanize_store/payment_types/edit.html.erb +0 -12
- data/app/views/mechanize_store/payment_types/index.html.erb +0 -46
- data/app/views/mechanize_store/payment_types/new.html.erb +0 -9
- data/app/views/mechanize_store/payment_types/show.html.erb +0 -15
- data/db/migrate/20140401203246_create_mechanize_store_order_statuses.rb +0 -9
- data/db/migrate/20140402140318_create_mechanize_store_payment_statuses.rb +0 -9
- data/db/migrate/20140402140325_create_mechanize_store_payment_types.rb +0 -9
- data/spec/controllers/mechanize_store/order_statuses_controller_spec.rb +0 -138
- data/spec/controllers/mechanize_store/payment_statuses_controller_spec.rb +0 -139
- data/spec/controllers/mechanize_store/payment_types_controller_spec.rb +0 -139
- data/spec/dummy/db/migrate/20140508135827_create_mechanize_store_freights.mechanize_store.rb +0 -13
- data/spec/dummy/db/migrate/20140508135828_create_mechanize_store_order_statuses.mechanize_store.rb +0 -10
- data/spec/dummy/db/migrate/20140508135829_create_mechanize_store_payment_statuses.mechanize_store.rb +0 -10
- data/spec/dummy/db/migrate/20140508135830_create_mechanize_store_payment_types.mechanize_store.rb +0 -10
- data/spec/dummy/db/migrate/20140508135831_create_mechanize_store_payments.mechanize_store.rb +0 -16
- data/spec/dummy/db/migrate/20140508135832_create_mechanize_store_flags.mechanize_store.rb +0 -10
- data/spec/dummy/db/migrate/20140508135833_create_mechanize_store_products.mechanize_store.rb +0 -17
- data/spec/dummy/db/migrate/20140508135834_create_mechanize_store_product_photos.mechanize_store.rb +0 -11
- data/spec/dummy/db/migrate/20140508135835_create_mechanize_store_orders.mechanize_store.rb +0 -12
- data/spec/dummy/db/migrate/20140508135836_create_mechanize_store_product_categories.mechanize_store.rb +0 -11
- data/spec/dummy/db/migrate/20140508135837_add_width_to_mechanize_store_product.mechanize_store.rb +0 -7
- data/spec/dummy/db/migrate/20140508135838_create_mechanize_store_order_items.mechanize_store.rb +0 -13
- data/spec/dummy/db/migrate/20140508135839_add_payment_type_id_to_payment.mechanize_store.rb +0 -7
- data/spec/dummy/db/migrate/20140508135840_add_time_to_freight.mechanize_store.rb +0 -6
- data/spec/factories/mechanize_store_payment_types.rb +0 -7
- data/spec/factories/store_order_statuses.rb +0 -7
- data/spec/factories/store_payment_statuses.rb +0 -7
- data/spec/models/store/order_status_spec.rb +0 -7
- data/spec/models/store/payment_status_spec.rb +0 -7
- data/spec/models/store/payment_type_spec.rb +0 -7
- data/spec/routing/store/order_statuses_routing_spec.rb +0 -39
- data/spec/routing/store/payment_statuses_routing_spec.rb +0 -38
- data/spec/routing/store/payment_types_routing_spec.rb +0 -38
@@ -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
|