gitignore

This commit is contained in:
benji 2015-03-03 16:40:06 +01:00
parent 9d17168fe0
commit 0bca2c8c23
5 changed files with 3 additions and 788 deletions

4
.gitignore vendored
View file

@ -19,4 +19,6 @@
public/system/products
public/system/users
.project
.project
/coverage

View file

@ -40,7 +40,6 @@ class Order < ActiveRecord::Base
def g_order_items(products, params = {})
products.each do |p|
if (oi = self.order_items.select { |t| t.product == p }).size > 0
puts oi.inspect
oi.first.count = [oi.first.product.stock, oi.first.count].min
else
self.order_items.build(product: p)

View file

@ -1,5 +0,0 @@
{
"result": {
"covered_percent": 83.65
}
}

View file

@ -1,781 +0,0 @@
{
"MiniTest": {
"coverage": {
"/Users/benjamin/Tab/config/environment.rb": [
null,
1,
null,
null,
1
],
"/Users/benjamin/Tab/config/environments/test.rb": [
1,
null,
null,
null,
null,
null,
null,
1,
null,
null,
null,
null,
1,
null,
null,
1,
1,
null,
null,
1,
1,
null,
null,
1,
null,
null,
1,
null,
null,
null,
null,
1,
null,
null,
1,
null,
1,
null,
null,
null,
null,
1,
null,
1,
null
],
"/Users/benjamin/Tab/config/initializers/assets.rb": [
null,
null,
null,
1,
null,
null,
null,
null
],
"/Users/benjamin/Tab/config/initializers/backtrace_silencers.rb": [
null,
null,
null,
null,
null,
null,
null
],
"/Users/benjamin/Tab/config/initializers/cookies_serializer.rb": [
null,
null,
1
],
"/Users/benjamin/Tab/config/initializers/devise.rb": [
null,
null,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
null,
null,
null,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"/Users/benjamin/Tab/config/initializers/filter_parameter_logging.rb": [
null,
null,
null,
1
],
"/Users/benjamin/Tab/config/initializers/inflections.rb": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"/Users/benjamin/Tab/config/initializers/mime_types.rb": [
null,
null,
null,
null
],
"/Users/benjamin/Tab/config/initializers/session_store.rb": [
null,
null,
1
],
"/Users/benjamin/Tab/config/initializers/wrap_parameters.rb": [
null,
null,
null,
null,
null,
null,
1,
1,
null,
null,
null,
null,
null,
null
],
"/Users/benjamin/Tab/config/routes.rb": [
1,
1,
null,
1,
1,
1,
null,
1,
1,
1,
null,
null,
null,
1,
1,
1,
1,
null,
null,
1,
1,
1,
1,
null,
null,
null,
1,
1,
null
],
"/Users/benjamin/Tab/app/models/user.rb": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
1,
null,
1,
null,
1,
null,
1,
1,
1,
null,
1,
1,
1,
1,
1,
null,
1,
null,
1,
0,
null,
null,
1,
0,
null,
null,
1,
0,
0,
null,
null,
null,
null,
1,
0,
null,
null,
null,
null,
1,
0,
null,
null,
1,
0,
null,
null
],
"/Users/benjamin/Tab/app/constraints/user_homepage_constraint.rb": [
1,
1,
0,
null,
null
],
"/Users/benjamin/Tab/test/controllers/orders_controller_test.rb": [
1,
null,
1,
null,
null,
null,
null
],
"/Users/benjamin/Tab/test/controllers/products_controller_test.rb": [
1,
null,
1,
null
],
"/Users/benjamin/Tab/test/controllers/users_controller_test.rb": [
1,
null,
1,
null
],
"/Users/benjamin/Tab/test/models/order_product_test.rb": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
1,
null,
null,
null,
null
],
"/Users/benjamin/Tab/test/models/order_test.rb": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
1,
1,
1,
1,
1,
1,
null,
null
],
"/Users/benjamin/Tab/test/models/product_test.rb": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
1,
null,
null,
null,
null
],
"/Users/benjamin/Tab/test/models/user_test.rb": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
1,
null,
null,
null,
null
],
"/Users/benjamin/Tab/app/models/order_item.rb": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
1,
1,
null,
1,
1,
null,
1,
1,
null,
1,
null,
1,
0,
0,
null,
null,
1,
null,
1,
0,
null,
null,
1,
0,
null,
null
],
"/Users/benjamin/Tab/app/models/order.rb": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
1,
null,
2,
1,
1,
null,
1,
1,
1,
null,
1,
null,
1,
1,
null,
1,
null,
1,
3,
null,
null,
1,
null,
0,
0,
null,
null,
1,
0,
0,
0,
0,
null,
0,
null,
null,
null,
null
],
"/Users/benjamin/Tab/app/validators/in_stock_validator.rb": [
1,
1,
0,
0,
0,
null,
0,
null,
null
],
"/Users/benjamin/Tab/app/models/product.rb": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
1,
1,
null,
1,
null,
1,
1,
1,
1,
1,
null,
1,
0,
null,
null,
1,
0,
0,
null,
null
]
},
"timestamp": 1425396353
}
}