diff options
author | Azul <azul@leap.se> | 2014-04-11 10:03:19 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-04-11 10:07:23 +0200 |
commit | 636692f9921bd695d726695d2d46c91f5a6e56f3 (patch) | |
tree | a7cc0b89007bd273ae7719f31c16e052a141fec7 | |
parent | 32136605ddd405a0bf47f3b795b22fd4b49465b5 (diff) |
move engines into engines directory
Also renamed help to support so it's harder to confuse it with documentation
-rw-r--r-- | Gemfile | 4 | ||||
-rw-r--r-- | Gemfile.lock | 4 | ||||
-rw-r--r-- | engines/billing/Gemfile (renamed from billing/Gemfile) | 0 | ||||
-rw-r--r-- | engines/billing/README.md (renamed from billing/README.md) | 0 | ||||
-rw-r--r-- | engines/billing/Rakefile (renamed from billing/Rakefile) | 0 | ||||
-rw-r--r-- | engines/billing/app/controllers/billing_admin_controller.rb (renamed from billing/app/controllers/billing_admin_controller.rb) | 0 | ||||
-rw-r--r-- | engines/billing/app/controllers/billing_base_controller.rb (renamed from billing/app/controllers/billing_base_controller.rb) | 0 | ||||
-rw-r--r-- | engines/billing/app/controllers/credit_card_info_controller.rb (renamed from billing/app/controllers/credit_card_info_controller.rb) | 0 | ||||
-rw-r--r-- | engines/billing/app/controllers/customer_controller.rb (renamed from billing/app/controllers/customer_controller.rb) | 0 | ||||
-rw-r--r-- | engines/billing/app/controllers/payments_controller.rb (renamed from billing/app/controllers/payments_controller.rb) | 0 | ||||
-rw-r--r-- | engines/billing/app/controllers/subscriptions_controller.rb (renamed from billing/app/controllers/subscriptions_controller.rb) | 0 | ||||
-rw-r--r-- | engines/billing/app/helpers/billing_helper.rb (renamed from billing/app/helpers/billing_helper.rb) | 0 | ||||
-rw-r--r-- | engines/billing/app/helpers/braintree_form_helper.rb (renamed from billing/app/helpers/braintree_form_helper.rb) | 0 | ||||
-rw-r--r-- | engines/billing/app/helpers/braintree_helper.rb (renamed from billing/app/helpers/braintree_helper.rb) | 0 | ||||
-rw-r--r-- | engines/billing/app/models/customer.rb (renamed from billing/app/models/customer.rb) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/billing_admin/show.html.haml (renamed from billing/app/views/billing_admin/show.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/credit_card_info/confirm.html.haml (renamed from billing/app/views/credit_card_info/confirm.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/credit_card_info/edit.html.haml (renamed from billing/app/views/credit_card_info/edit.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/customer/_customer_data.html.haml (renamed from billing/app/views/customer/_customer_data.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/customer/_transaction.html.haml (renamed from billing/app/views/customer/_transaction.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/customer/confirm.html.haml (renamed from billing/app/views/customer/confirm.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/customer/edit.html.haml (renamed from billing/app/views/customer/edit.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/customer/new.html.haml (renamed from billing/app/views/customer/new.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/customer/show.html.haml (renamed from billing/app/views/customer/show.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/payments/_non_customer_fields.html.haml (renamed from billing/app/views/payments/_non_customer_fields.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/payments/_transaction_details.html.haml (renamed from billing/app/views/payments/_transaction_details.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/payments/confirm.html.haml (renamed from billing/app/views/payments/confirm.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/payments/index.html.haml (renamed from billing/app/views/payments/index.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/payments/new.html.haml (renamed from billing/app/views/payments/new.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/subscriptions/_subscription_details.html.haml (renamed from billing/app/views/subscriptions/_subscription_details.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/subscriptions/create.html.haml (renamed from billing/app/views/subscriptions/create.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/subscriptions/destroy.html.haml (renamed from billing/app/views/subscriptions/destroy.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/subscriptions/index.html.haml (renamed from billing/app/views/subscriptions/index.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/subscriptions/new.html.haml (renamed from billing/app/views/subscriptions/new.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/app/views/subscriptions/show.html.haml (renamed from billing/app/views/subscriptions/show.html.haml) | 0 | ||||
-rw-r--r-- | engines/billing/config/initializers/braintree.rb (renamed from billing/config/initializers/braintree.rb) | 0 | ||||
-rw-r--r-- | engines/billing/config/locales/en.yml (renamed from billing/config/locales/en.yml) | 0 | ||||
-rw-r--r-- | engines/billing/config/routes.rb (renamed from billing/config/routes.rb) | 0 | ||||
-rw-r--r-- | engines/billing/leap_web_billing.gemspec (renamed from billing/leap_web_billing.gemspec) | 2 | ||||
-rw-r--r-- | engines/billing/lib/braintree_test_app.rb (renamed from billing/lib/braintree_test_app.rb) | 0 | ||||
-rw-r--r-- | engines/billing/lib/leap_web_billing.rb (renamed from billing/lib/leap_web_billing.rb) | 0 | ||||
-rw-r--r-- | engines/billing/lib/leap_web_billing/engine.rb (renamed from billing/lib/leap_web_billing/engine.rb) | 0 | ||||
-rwxr-xr-x | engines/billing/script/rails (renamed from billing/script/rails) | 0 | ||||
-rw-r--r-- | engines/billing/test/broken/admin_customer_test.rb (renamed from billing/test/broken/admin_customer_test.rb) | 0 | ||||
-rw-r--r-- | engines/billing/test/broken/customer_creation_test.rb (renamed from billing/test/broken/customer_creation_test.rb) | 0 | ||||
-rw-r--r-- | engines/billing/test/broken/subscription_test.rb (renamed from billing/test/broken/subscription_test.rb) | 0 | ||||
-rw-r--r-- | engines/billing/test/factories.rb (renamed from billing/test/factories.rb) | 0 | ||||
-rw-r--r-- | engines/billing/test/functional/customer_controller_test.rb (renamed from billing/test/functional/customer_controller_test.rb) | 0 | ||||
-rw-r--r-- | engines/billing/test/functional/customers_controller_test.rb (renamed from billing/test/functional/customers_controller_test.rb) | 0 | ||||
-rw-r--r-- | engines/billing/test/functional/payments_controller_test.rb (renamed from billing/test/functional/payments_controller_test.rb) | 0 | ||||
-rw-r--r-- | engines/billing/test/functional/subscriptions_controller_test.rb (renamed from billing/test/functional/subscriptions_controller_test.rb) | 0 | ||||
-rw-r--r-- | engines/billing/test/support/braintree_integration_test.rb (renamed from billing/test/support/braintree_integration_test.rb) | 0 | ||||
-rw-r--r-- | engines/billing/test/support/customer_test_helper.rb (renamed from billing/test/support/customer_test_helper.rb) | 0 | ||||
-rw-r--r-- | engines/billing/test/test_helper.rb (renamed from help/test/test_helper.rb) | 2 | ||||
-rw-r--r-- | engines/billing/test/unit/customer_test.rb (renamed from billing/test/unit/customer_test.rb) | 0 | ||||
-rw-r--r-- | engines/billing/test/unit/customer_with_payment_info_test.rb (renamed from billing/test/unit/customer_with_payment_info_test.rb) | 0 | ||||
-rw-r--r-- | engines/support/Gemfile (renamed from help/Gemfile) | 0 | ||||
-rw-r--r-- | engines/support/README.md (renamed from help/README.md) | 0 | ||||
-rw-r--r-- | engines/support/Rakefile (renamed from help/Rakefile) | 0 | ||||
-rw-r--r-- | engines/support/app/assets/javascripts/tickets.js (renamed from help/app/assets/javascripts/tickets.js) | 0 | ||||
-rw-r--r-- | engines/support/app/controllers/tickets_controller.rb (renamed from help/app/controllers/tickets_controller.rb) | 0 | ||||
-rw-r--r-- | engines/support/app/designs/ticket/by_includes_post_by.js (renamed from help/app/designs/ticket/by_includes_post_by.js) | 0 | ||||
-rw-r--r-- | engines/support/app/designs/ticket/by_includes_post_by_and_created_at.js (renamed from help/app/designs/ticket/by_includes_post_by_and_created_at.js) | 0 | ||||
-rw-r--r-- | engines/support/app/designs/ticket/by_includes_post_by_and_is_open_and_created_at.js (renamed from help/app/designs/ticket/by_includes_post_by_and_is_open_and_created_at.js) | 0 | ||||
-rw-r--r-- | engines/support/app/designs/ticket/by_includes_post_by_and_is_open_and_updated_at.js (renamed from help/app/designs/ticket/by_includes_post_by_and_is_open_and_updated_at.js) | 0 | ||||
-rw-r--r-- | engines/support/app/designs/ticket/by_includes_post_by_and_updated_at.js (renamed from help/app/designs/ticket/by_includes_post_by_and_updated_at.js) | 0 | ||||
-rw-r--r-- | engines/support/app/helpers/auto_tickets_path_helper.rb (renamed from help/app/helpers/auto_tickets_path_helper.rb) | 0 | ||||
-rw-r--r-- | engines/support/app/helpers/tickets_helper.rb (renamed from help/app/helpers/tickets_helper.rb) | 0 | ||||
-rw-r--r-- | engines/support/app/models/account_extension/tickets.rb (renamed from help/app/models/account_extension/tickets.rb) | 0 | ||||
-rw-r--r-- | engines/support/app/models/ticket.rb (renamed from help/app/models/ticket.rb) | 0 | ||||
-rw-r--r-- | engines/support/app/models/ticket_comment.rb (renamed from help/app/models/ticket_comment.rb) | 0 | ||||
-rw-r--r-- | engines/support/app/models/ticket_selection.rb (renamed from help/app/models/ticket_selection.rb) | 0 | ||||
-rw-r--r-- | engines/support/app/views/tickets/_comment.html.haml (renamed from help/app/views/tickets/_comment.html.haml) | 0 | ||||
-rw-r--r-- | engines/support/app/views/tickets/_edit_form.html.haml (renamed from help/app/views/tickets/_edit_form.html.haml) | 0 | ||||
-rw-r--r-- | engines/support/app/views/tickets/_new_comment_form.html.haml (renamed from help/app/views/tickets/_new_comment_form.html.haml) | 0 | ||||
-rw-r--r-- | engines/support/app/views/tickets/_tabs.html.haml (renamed from help/app/views/tickets/_tabs.html.haml) | 0 | ||||
-rw-r--r-- | engines/support/app/views/tickets/_ticket.html.haml (renamed from help/app/views/tickets/_ticket.html.haml) | 0 | ||||
-rw-r--r-- | engines/support/app/views/tickets/index.html.haml (renamed from help/app/views/tickets/index.html.haml) | 0 | ||||
-rw-r--r-- | engines/support/app/views/tickets/new.html.haml (renamed from help/app/views/tickets/new.html.haml) | 0 | ||||
-rw-r--r-- | engines/support/app/views/tickets/show.html.haml (renamed from help/app/views/tickets/show.html.haml) | 0 | ||||
-rw-r--r-- | engines/support/config/initializers/account_lifecycle.rb (renamed from help/config/initializers/account_lifecycle.rb) | 0 | ||||
-rw-r--r-- | engines/support/config/locales/en.yml (renamed from help/config/locales/en.yml) | 0 | ||||
-rw-r--r-- | engines/support/config/routes.rb (renamed from help/config/routes.rb) | 0 | ||||
-rw-r--r-- | engines/support/leap_web_help.gemspec (renamed from help/leap_web_help.gemspec) | 4 | ||||
-rw-r--r-- | engines/support/lib/leap_web_help.rb (renamed from help/lib/leap_web_help.rb) | 0 | ||||
-rw-r--r-- | engines/support/lib/leap_web_help/engine.rb (renamed from help/lib/leap_web_help/engine.rb) | 0 | ||||
-rw-r--r-- | engines/support/lib/tasks/leap_web_help_tasks.rake (renamed from help/lib/tasks/leap_web_help_tasks.rake) | 0 | ||||
-rwxr-xr-x | engines/support/script/rails (renamed from help/script/rails) | 0 | ||||
-rw-r--r-- | engines/support/test/factories.rb (renamed from help/test/factories.rb) | 0 | ||||
-rw-r--r-- | engines/support/test/functional/tickets_controller_test.rb (renamed from help/test/functional/tickets_controller_test.rb) | 0 | ||||
-rw-r--r-- | engines/support/test/integration/navigation_test.rb (renamed from help/test/integration/navigation_test.rb) | 0 | ||||
-rw-r--r-- | engines/support/test/leap_web_help_test.rb (renamed from help/test/leap_web_help_test.rb) | 0 | ||||
-rw-r--r-- | engines/support/test/test_helper.rb (renamed from billing/test/test_helper.rb) | 2 | ||||
-rw-r--r-- | engines/support/test/unit/account_extension_test.rb (renamed from help/test/unit/account_extension_test.rb) | 0 | ||||
-rw-r--r-- | engines/support/test/unit/ticket_comment_test.rb (renamed from help/test/unit/ticket_comment_test.rb) | 0 | ||||
-rw-r--r-- | engines/support/test/unit/ticket_test.rb (renamed from help/test/unit/ticket_test.rb) | 0 | ||||
-rw-r--r-- | lib/extensions/couchrest.rb | 2 | ||||
-rw-r--r-- | lib/tasks/test.rake | 19 | ||||
-rw-r--r-- | test/factories.rb | 4 | ||||
-rw-r--r-- | test/test_helper.rb | 2 |
100 files changed, 20 insertions, 25 deletions
@@ -10,8 +10,8 @@ gem "json" gem "ruby-srp", "~> 0.2.1" gem "rails_warden" -gem 'leap_web_help', :path => 'help' -gem 'leap_web_billing', :path => 'billing' +gem 'leap_web_help', :path => 'engines/support' +gem 'leap_web_billing', :path => 'engines/billing' gem 'http_accept_language' diff --git a/Gemfile.lock b/Gemfile.lock index 537dafd..a2a1785 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -6,13 +6,13 @@ GIT activemodel (>= 3.0.6) PATH - remote: billing + remote: engines/billing specs: leap_web_billing (0.5.0) braintree PATH - remote: help + remote: engines/support specs: leap_web_help (0.5.0) diff --git a/billing/Gemfile b/engines/billing/Gemfile index 30e9669..30e9669 100644 --- a/billing/Gemfile +++ b/engines/billing/Gemfile diff --git a/billing/README.md b/engines/billing/README.md index 3ef6153..3ef6153 100644 --- a/billing/README.md +++ b/engines/billing/README.md diff --git a/billing/Rakefile b/engines/billing/Rakefile index 52929c4..52929c4 100644 --- a/billing/Rakefile +++ b/engines/billing/Rakefile diff --git a/billing/app/controllers/billing_admin_controller.rb b/engines/billing/app/controllers/billing_admin_controller.rb index e11d4ee..e11d4ee 100644 --- a/billing/app/controllers/billing_admin_controller.rb +++ b/engines/billing/app/controllers/billing_admin_controller.rb diff --git a/billing/app/controllers/billing_base_controller.rb b/engines/billing/app/controllers/billing_base_controller.rb index 0453677..0453677 100644 --- a/billing/app/controllers/billing_base_controller.rb +++ b/engines/billing/app/controllers/billing_base_controller.rb diff --git a/billing/app/controllers/credit_card_info_controller.rb b/engines/billing/app/controllers/credit_card_info_controller.rb index fbaa6f1..fbaa6f1 100644 --- a/billing/app/controllers/credit_card_info_controller.rb +++ b/engines/billing/app/controllers/credit_card_info_controller.rb diff --git a/billing/app/controllers/customer_controller.rb b/engines/billing/app/controllers/customer_controller.rb index 6cbcb44..6cbcb44 100644 --- a/billing/app/controllers/customer_controller.rb +++ b/engines/billing/app/controllers/customer_controller.rb diff --git a/billing/app/controllers/payments_controller.rb b/engines/billing/app/controllers/payments_controller.rb index fce6570..fce6570 100644 --- a/billing/app/controllers/payments_controller.rb +++ b/engines/billing/app/controllers/payments_controller.rb diff --git a/billing/app/controllers/subscriptions_controller.rb b/engines/billing/app/controllers/subscriptions_controller.rb index f066b3c..f066b3c 100644 --- a/billing/app/controllers/subscriptions_controller.rb +++ b/engines/billing/app/controllers/subscriptions_controller.rb diff --git a/billing/app/helpers/billing_helper.rb b/engines/billing/app/helpers/billing_helper.rb index b9e5e2e..b9e5e2e 100644 --- a/billing/app/helpers/billing_helper.rb +++ b/engines/billing/app/helpers/billing_helper.rb diff --git a/billing/app/helpers/braintree_form_helper.rb b/engines/billing/app/helpers/braintree_form_helper.rb index cb322fa..cb322fa 100644 --- a/billing/app/helpers/braintree_form_helper.rb +++ b/engines/billing/app/helpers/braintree_form_helper.rb diff --git a/billing/app/helpers/braintree_helper.rb b/engines/billing/app/helpers/braintree_helper.rb index 2d18b6c..2d18b6c 100644 --- a/billing/app/helpers/braintree_helper.rb +++ b/engines/billing/app/helpers/braintree_helper.rb diff --git a/billing/app/models/customer.rb b/engines/billing/app/models/customer.rb index 1acc7a5..1acc7a5 100644 --- a/billing/app/models/customer.rb +++ b/engines/billing/app/models/customer.rb diff --git a/billing/app/views/billing_admin/show.html.haml b/engines/billing/app/views/billing_admin/show.html.haml index 0382cf0..0382cf0 100644 --- a/billing/app/views/billing_admin/show.html.haml +++ b/engines/billing/app/views/billing_admin/show.html.haml diff --git a/billing/app/views/credit_card_info/confirm.html.haml b/engines/billing/app/views/credit_card_info/confirm.html.haml index 9dd8176..9dd8176 100644 --- a/billing/app/views/credit_card_info/confirm.html.haml +++ b/engines/billing/app/views/credit_card_info/confirm.html.haml diff --git a/billing/app/views/credit_card_info/edit.html.haml b/engines/billing/app/views/credit_card_info/edit.html.haml index bd86a4c..bd86a4c 100644 --- a/billing/app/views/credit_card_info/edit.html.haml +++ b/engines/billing/app/views/credit_card_info/edit.html.haml diff --git a/billing/app/views/customer/_customer_data.html.haml b/engines/billing/app/views/customer/_customer_data.html.haml index e9df040..e9df040 100644 --- a/billing/app/views/customer/_customer_data.html.haml +++ b/engines/billing/app/views/customer/_customer_data.html.haml diff --git a/billing/app/views/customer/_transaction.html.haml b/engines/billing/app/views/customer/_transaction.html.haml index e69de29..e69de29 100644 --- a/billing/app/views/customer/_transaction.html.haml +++ b/engines/billing/app/views/customer/_transaction.html.haml diff --git a/billing/app/views/customer/confirm.html.haml b/engines/billing/app/views/customer/confirm.html.haml index 877a8ac..877a8ac 100644 --- a/billing/app/views/customer/confirm.html.haml +++ b/engines/billing/app/views/customer/confirm.html.haml diff --git a/billing/app/views/customer/edit.html.haml b/engines/billing/app/views/customer/edit.html.haml index e882d53..e882d53 100644 --- a/billing/app/views/customer/edit.html.haml +++ b/engines/billing/app/views/customer/edit.html.haml diff --git a/billing/app/views/customer/new.html.haml b/engines/billing/app/views/customer/new.html.haml index e1f5ba9..e1f5ba9 100644 --- a/billing/app/views/customer/new.html.haml +++ b/engines/billing/app/views/customer/new.html.haml diff --git a/billing/app/views/customer/show.html.haml b/engines/billing/app/views/customer/show.html.haml index ec1779c..ec1779c 100644 --- a/billing/app/views/customer/show.html.haml +++ b/engines/billing/app/views/customer/show.html.haml diff --git a/billing/app/views/payments/_non_customer_fields.html.haml b/engines/billing/app/views/payments/_non_customer_fields.html.haml index 77cfe95..77cfe95 100644 --- a/billing/app/views/payments/_non_customer_fields.html.haml +++ b/engines/billing/app/views/payments/_non_customer_fields.html.haml diff --git a/billing/app/views/payments/_transaction_details.html.haml b/engines/billing/app/views/payments/_transaction_details.html.haml index 85e4f6a..85e4f6a 100644 --- a/billing/app/views/payments/_transaction_details.html.haml +++ b/engines/billing/app/views/payments/_transaction_details.html.haml diff --git a/billing/app/views/payments/confirm.html.haml b/engines/billing/app/views/payments/confirm.html.haml index 45af3c9..45af3c9 100644 --- a/billing/app/views/payments/confirm.html.haml +++ b/engines/billing/app/views/payments/confirm.html.haml diff --git a/billing/app/views/payments/index.html.haml b/engines/billing/app/views/payments/index.html.haml index 7a89917..7a89917 100644 --- a/billing/app/views/payments/index.html.haml +++ b/engines/billing/app/views/payments/index.html.haml diff --git a/billing/app/views/payments/new.html.haml b/engines/billing/app/views/payments/new.html.haml index e9a8273..e9a8273 100644 --- a/billing/app/views/payments/new.html.haml +++ b/engines/billing/app/views/payments/new.html.haml diff --git a/billing/app/views/subscriptions/_subscription_details.html.haml b/engines/billing/app/views/subscriptions/_subscription_details.html.haml index 6145c95..6145c95 100644 --- a/billing/app/views/subscriptions/_subscription_details.html.haml +++ b/engines/billing/app/views/subscriptions/_subscription_details.html.haml diff --git a/billing/app/views/subscriptions/create.html.haml b/engines/billing/app/views/subscriptions/create.html.haml index 2b6c5e9..2b6c5e9 100644 --- a/billing/app/views/subscriptions/create.html.haml +++ b/engines/billing/app/views/subscriptions/create.html.haml diff --git a/billing/app/views/subscriptions/destroy.html.haml b/engines/billing/app/views/subscriptions/destroy.html.haml index 44b4333..44b4333 100644 --- a/billing/app/views/subscriptions/destroy.html.haml +++ b/engines/billing/app/views/subscriptions/destroy.html.haml diff --git a/billing/app/views/subscriptions/index.html.haml b/engines/billing/app/views/subscriptions/index.html.haml index 3d4e8fd..3d4e8fd 100644 --- a/billing/app/views/subscriptions/index.html.haml +++ b/engines/billing/app/views/subscriptions/index.html.haml diff --git a/billing/app/views/subscriptions/new.html.haml b/engines/billing/app/views/subscriptions/new.html.haml index 4183458..4183458 100644 --- a/billing/app/views/subscriptions/new.html.haml +++ b/engines/billing/app/views/subscriptions/new.html.haml diff --git a/billing/app/views/subscriptions/show.html.haml b/engines/billing/app/views/subscriptions/show.html.haml index 2699db9..2699db9 100644 --- a/billing/app/views/subscriptions/show.html.haml +++ b/engines/billing/app/views/subscriptions/show.html.haml diff --git a/billing/config/initializers/braintree.rb b/engines/billing/config/initializers/braintree.rb index 3d87f4c..3d87f4c 100644 --- a/billing/config/initializers/braintree.rb +++ b/engines/billing/config/initializers/braintree.rb diff --git a/billing/config/locales/en.yml b/engines/billing/config/locales/en.yml index 1300958..1300958 100644 --- a/billing/config/locales/en.yml +++ b/engines/billing/config/locales/en.yml diff --git a/billing/config/routes.rb b/engines/billing/config/routes.rb index 7263dff..7263dff 100644 --- a/billing/config/routes.rb +++ b/engines/billing/config/routes.rb diff --git a/billing/leap_web_billing.gemspec b/engines/billing/leap_web_billing.gemspec index cb0335e..c6ac3f3 100644 --- a/billing/leap_web_billing.gemspec +++ b/engines/billing/leap_web_billing.gemspec @@ -1,6 +1,6 @@ $:.push File.expand_path("../lib", __FILE__) -require File.expand_path('../../lib/leap_web/version.rb', __FILE__) +require File.expand_path('../../../lib/leap_web/version.rb', __FILE__) # Describe your gem and declare its dependencies: Gem::Specification.new do |s| diff --git a/billing/lib/braintree_test_app.rb b/engines/billing/lib/braintree_test_app.rb index 41c327d..41c327d 100644 --- a/billing/lib/braintree_test_app.rb +++ b/engines/billing/lib/braintree_test_app.rb diff --git a/billing/lib/leap_web_billing.rb b/engines/billing/lib/leap_web_billing.rb index 288d846..288d846 100644 --- a/billing/lib/leap_web_billing.rb +++ b/engines/billing/lib/leap_web_billing.rb diff --git a/billing/lib/leap_web_billing/engine.rb b/engines/billing/lib/leap_web_billing/engine.rb index ab574f2..ab574f2 100644 --- a/billing/lib/leap_web_billing/engine.rb +++ b/engines/billing/lib/leap_web_billing/engine.rb diff --git a/billing/script/rails b/engines/billing/script/rails index 8bd9c0a..8bd9c0a 100755 --- a/billing/script/rails +++ b/engines/billing/script/rails diff --git a/billing/test/broken/admin_customer_test.rb b/engines/billing/test/broken/admin_customer_test.rb index df92a0d..df92a0d 100644 --- a/billing/test/broken/admin_customer_test.rb +++ b/engines/billing/test/broken/admin_customer_test.rb diff --git a/billing/test/broken/customer_creation_test.rb b/engines/billing/test/broken/customer_creation_test.rb index 90319a9..90319a9 100644 --- a/billing/test/broken/customer_creation_test.rb +++ b/engines/billing/test/broken/customer_creation_test.rb diff --git a/billing/test/broken/subscription_test.rb b/engines/billing/test/broken/subscription_test.rb index cd010bd..cd010bd 100644 --- a/billing/test/broken/subscription_test.rb +++ b/engines/billing/test/broken/subscription_test.rb diff --git a/billing/test/factories.rb b/engines/billing/test/factories.rb index 87543b2..87543b2 100644 --- a/billing/test/factories.rb +++ b/engines/billing/test/factories.rb diff --git a/billing/test/functional/customer_controller_test.rb b/engines/billing/test/functional/customer_controller_test.rb index d943e23..d943e23 100644 --- a/billing/test/functional/customer_controller_test.rb +++ b/engines/billing/test/functional/customer_controller_test.rb diff --git a/billing/test/functional/customers_controller_test.rb b/engines/billing/test/functional/customers_controller_test.rb index 46c33c9..46c33c9 100644 --- a/billing/test/functional/customers_controller_test.rb +++ b/engines/billing/test/functional/customers_controller_test.rb diff --git a/billing/test/functional/payments_controller_test.rb b/engines/billing/test/functional/payments_controller_test.rb index 90b7582..90b7582 100644 --- a/billing/test/functional/payments_controller_test.rb +++ b/engines/billing/test/functional/payments_controller_test.rb diff --git a/billing/test/functional/subscriptions_controller_test.rb b/engines/billing/test/functional/subscriptions_controller_test.rb index a6a1057..a6a1057 100644 --- a/billing/test/functional/subscriptions_controller_test.rb +++ b/engines/billing/test/functional/subscriptions_controller_test.rb diff --git a/billing/test/support/braintree_integration_test.rb b/engines/billing/test/support/braintree_integration_test.rb index 976c5a2..976c5a2 100644 --- a/billing/test/support/braintree_integration_test.rb +++ b/engines/billing/test/support/braintree_integration_test.rb diff --git a/billing/test/support/customer_test_helper.rb b/engines/billing/test/support/customer_test_helper.rb index adac00a..adac00a 100644 --- a/billing/test/support/customer_test_helper.rb +++ b/engines/billing/test/support/customer_test_helper.rb diff --git a/help/test/test_helper.rb b/engines/billing/test/test_helper.rb index 3381f44..7ad3869 100644 --- a/help/test/test_helper.rb +++ b/engines/billing/test/test_helper.rb @@ -1,7 +1,7 @@ # Configure Rails Environment ENV["RAILS_ENV"] = "test" -require File.expand_path('../../../test/dummy/config/environment', __FILE__) +require File.expand_path("../../../../dummy/config/environment.rb", __FILE__) require "rails/test_help" Rails.backtrace_cleaner.remove_silencers! diff --git a/billing/test/unit/customer_test.rb b/engines/billing/test/unit/customer_test.rb index 6156f87..6156f87 100644 --- a/billing/test/unit/customer_test.rb +++ b/engines/billing/test/unit/customer_test.rb diff --git a/billing/test/unit/customer_with_payment_info_test.rb b/engines/billing/test/unit/customer_with_payment_info_test.rb index 0589a59..0589a59 100644 --- a/billing/test/unit/customer_with_payment_info_test.rb +++ b/engines/billing/test/unit/customer_with_payment_info_test.rb diff --git a/help/Gemfile b/engines/support/Gemfile index ad7d29b..ad7d29b 100644 --- a/help/Gemfile +++ b/engines/support/Gemfile diff --git a/help/README.md b/engines/support/README.md index c9573e6..c9573e6 100644 --- a/help/README.md +++ b/engines/support/README.md diff --git a/help/Rakefile b/engines/support/Rakefile index 0e73163..0e73163 100644 --- a/help/Rakefile +++ b/engines/support/Rakefile diff --git a/help/app/assets/javascripts/tickets.js b/engines/support/app/assets/javascripts/tickets.js index 18537aa..18537aa 100644 --- a/help/app/assets/javascripts/tickets.js +++ b/engines/support/app/assets/javascripts/tickets.js diff --git a/help/app/controllers/tickets_controller.rb b/engines/support/app/controllers/tickets_controller.rb index d65ee43..d65ee43 100644 --- a/help/app/controllers/tickets_controller.rb +++ b/engines/support/app/controllers/tickets_controller.rb diff --git a/help/app/designs/ticket/by_includes_post_by.js b/engines/support/app/designs/ticket/by_includes_post_by.js index 2eeac89..2eeac89 100644 --- a/help/app/designs/ticket/by_includes_post_by.js +++ b/engines/support/app/designs/ticket/by_includes_post_by.js diff --git a/help/app/designs/ticket/by_includes_post_by_and_created_at.js b/engines/support/app/designs/ticket/by_includes_post_by_and_created_at.js index 72169b0..72169b0 100644 --- a/help/app/designs/ticket/by_includes_post_by_and_created_at.js +++ b/engines/support/app/designs/ticket/by_includes_post_by_and_created_at.js diff --git a/help/app/designs/ticket/by_includes_post_by_and_is_open_and_created_at.js b/engines/support/app/designs/ticket/by_includes_post_by_and_is_open_and_created_at.js index 33dfe0b..33dfe0b 100644 --- a/help/app/designs/ticket/by_includes_post_by_and_is_open_and_created_at.js +++ b/engines/support/app/designs/ticket/by_includes_post_by_and_is_open_and_created_at.js diff --git a/help/app/designs/ticket/by_includes_post_by_and_is_open_and_updated_at.js b/engines/support/app/designs/ticket/by_includes_post_by_and_is_open_and_updated_at.js index 3bd2a74..3bd2a74 100644 --- a/help/app/designs/ticket/by_includes_post_by_and_is_open_and_updated_at.js +++ b/engines/support/app/designs/ticket/by_includes_post_by_and_is_open_and_updated_at.js diff --git a/help/app/designs/ticket/by_includes_post_by_and_updated_at.js b/engines/support/app/designs/ticket/by_includes_post_by_and_updated_at.js index 2b4304f..2b4304f 100644 --- a/help/app/designs/ticket/by_includes_post_by_and_updated_at.js +++ b/engines/support/app/designs/ticket/by_includes_post_by_and_updated_at.js diff --git a/help/app/helpers/auto_tickets_path_helper.rb b/engines/support/app/helpers/auto_tickets_path_helper.rb index 93f3cb9..93f3cb9 100644 --- a/help/app/helpers/auto_tickets_path_helper.rb +++ b/engines/support/app/helpers/auto_tickets_path_helper.rb diff --git a/help/app/helpers/tickets_helper.rb b/engines/support/app/helpers/tickets_helper.rb index 7af50d6..7af50d6 100644 --- a/help/app/helpers/tickets_helper.rb +++ b/engines/support/app/helpers/tickets_helper.rb diff --git a/help/app/models/account_extension/tickets.rb b/engines/support/app/models/account_extension/tickets.rb index f898b56..f898b56 100644 --- a/help/app/models/account_extension/tickets.rb +++ b/engines/support/app/models/account_extension/tickets.rb diff --git a/help/app/models/ticket.rb b/engines/support/app/models/ticket.rb index cd22758..cd22758 100644 --- a/help/app/models/ticket.rb +++ b/engines/support/app/models/ticket.rb diff --git a/help/app/models/ticket_comment.rb b/engines/support/app/models/ticket_comment.rb index bed5237..bed5237 100644 --- a/help/app/models/ticket_comment.rb +++ b/engines/support/app/models/ticket_comment.rb diff --git a/help/app/models/ticket_selection.rb b/engines/support/app/models/ticket_selection.rb index 74d5b78..74d5b78 100644 --- a/help/app/models/ticket_selection.rb +++ b/engines/support/app/models/ticket_selection.rb diff --git a/help/app/views/tickets/_comment.html.haml b/engines/support/app/views/tickets/_comment.html.haml index 778ca13..778ca13 100644 --- a/help/app/views/tickets/_comment.html.haml +++ b/engines/support/app/views/tickets/_comment.html.haml diff --git a/help/app/views/tickets/_edit_form.html.haml b/engines/support/app/views/tickets/_edit_form.html.haml index 714f8ff..714f8ff 100644 --- a/help/app/views/tickets/_edit_form.html.haml +++ b/engines/support/app/views/tickets/_edit_form.html.haml diff --git a/help/app/views/tickets/_new_comment_form.html.haml b/engines/support/app/views/tickets/_new_comment_form.html.haml index 8418e01..8418e01 100644 --- a/help/app/views/tickets/_new_comment_form.html.haml +++ b/engines/support/app/views/tickets/_new_comment_form.html.haml diff --git a/help/app/views/tickets/_tabs.html.haml b/engines/support/app/views/tickets/_tabs.html.haml index b7b5d3a..b7b5d3a 100644 --- a/help/app/views/tickets/_tabs.html.haml +++ b/engines/support/app/views/tickets/_tabs.html.haml diff --git a/help/app/views/tickets/_ticket.html.haml b/engines/support/app/views/tickets/_ticket.html.haml index 5bc33c8..5bc33c8 100644 --- a/help/app/views/tickets/_ticket.html.haml +++ b/engines/support/app/views/tickets/_ticket.html.haml diff --git a/help/app/views/tickets/index.html.haml b/engines/support/app/views/tickets/index.html.haml index c02a326..c02a326 100644 --- a/help/app/views/tickets/index.html.haml +++ b/engines/support/app/views/tickets/index.html.haml diff --git a/help/app/views/tickets/new.html.haml b/engines/support/app/views/tickets/new.html.haml index 8f217a5..8f217a5 100644 --- a/help/app/views/tickets/new.html.haml +++ b/engines/support/app/views/tickets/new.html.haml diff --git a/help/app/views/tickets/show.html.haml b/engines/support/app/views/tickets/show.html.haml index bfdb773..bfdb773 100644 --- a/help/app/views/tickets/show.html.haml +++ b/engines/support/app/views/tickets/show.html.haml diff --git a/help/config/initializers/account_lifecycle.rb b/engines/support/config/initializers/account_lifecycle.rb index d9f04c1..d9f04c1 100644 --- a/help/config/initializers/account_lifecycle.rb +++ b/engines/support/config/initializers/account_lifecycle.rb diff --git a/help/config/locales/en.yml b/engines/support/config/locales/en.yml index 342adea..342adea 100644 --- a/help/config/locales/en.yml +++ b/engines/support/config/locales/en.yml diff --git a/help/config/routes.rb b/engines/support/config/routes.rb index 23e0c11..23e0c11 100644 --- a/help/config/routes.rb +++ b/engines/support/config/routes.rb diff --git a/help/leap_web_help.gemspec b/engines/support/leap_web_help.gemspec index ac6d78d..41959d6 100644 --- a/help/leap_web_help.gemspec +++ b/engines/support/leap_web_help.gemspec @@ -1,6 +1,6 @@ -$:.push File.expand_path("../lib", __FILE__) +$:.push File.expand_path("../../lib", __FILE__) -require File.expand_path('../../lib/leap_web/version.rb', __FILE__) +require File.expand_path('../../../lib/leap_web/version.rb', __FILE__) # Describe your gem and declare its dependencies: Gem::Specification.new do |s| diff --git a/help/lib/leap_web_help.rb b/engines/support/lib/leap_web_help.rb index f5b04aa..f5b04aa 100644 --- a/help/lib/leap_web_help.rb +++ b/engines/support/lib/leap_web_help.rb diff --git a/help/lib/leap_web_help/engine.rb b/engines/support/lib/leap_web_help/engine.rb index dfa763f..dfa763f 100644 --- a/help/lib/leap_web_help/engine.rb +++ b/engines/support/lib/leap_web_help/engine.rb diff --git a/help/lib/tasks/leap_web_help_tasks.rake b/engines/support/lib/tasks/leap_web_help_tasks.rake index 1f38982..1f38982 100644 --- a/help/lib/tasks/leap_web_help_tasks.rake +++ b/engines/support/lib/tasks/leap_web_help_tasks.rake diff --git a/help/script/rails b/engines/support/script/rails index 5676ab9..5676ab9 100755 --- a/help/script/rails +++ b/engines/support/script/rails diff --git a/help/test/factories.rb b/engines/support/test/factories.rb index be04f15..be04f15 100644 --- a/help/test/factories.rb +++ b/engines/support/test/factories.rb diff --git a/help/test/functional/tickets_controller_test.rb b/engines/support/test/functional/tickets_controller_test.rb index 416fb73..416fb73 100644 --- a/help/test/functional/tickets_controller_test.rb +++ b/engines/support/test/functional/tickets_controller_test.rb diff --git a/help/test/integration/navigation_test.rb b/engines/support/test/integration/navigation_test.rb index eec8c0e..eec8c0e 100644 --- a/help/test/integration/navigation_test.rb +++ b/engines/support/test/integration/navigation_test.rb diff --git a/help/test/leap_web_help_test.rb b/engines/support/test/leap_web_help_test.rb index d74c087..d74c087 100644 --- a/help/test/leap_web_help_test.rb +++ b/engines/support/test/leap_web_help_test.rb diff --git a/billing/test/test_helper.rb b/engines/support/test/test_helper.rb index 1e26a31..fff9173 100644 --- a/billing/test/test_helper.rb +++ b/engines/support/test/test_helper.rb @@ -1,7 +1,7 @@ # Configure Rails Environment ENV["RAILS_ENV"] = "test" -require File.expand_path("../dummy/config/environment.rb", __FILE__) +require File.expand_path('../../../../test/dummy/config/environment', __FILE__) require "rails/test_help" Rails.backtrace_cleaner.remove_silencers! diff --git a/help/test/unit/account_extension_test.rb b/engines/support/test/unit/account_extension_test.rb index aba162c..aba162c 100644 --- a/help/test/unit/account_extension_test.rb +++ b/engines/support/test/unit/account_extension_test.rb diff --git a/help/test/unit/ticket_comment_test.rb b/engines/support/test/unit/ticket_comment_test.rb index fe8cc95..fe8cc95 100644 --- a/help/test/unit/ticket_comment_test.rb +++ b/engines/support/test/unit/ticket_comment_test.rb diff --git a/help/test/unit/ticket_test.rb b/engines/support/test/unit/ticket_test.rb index f5e6ea7..f5e6ea7 100644 --- a/help/test/unit/ticket_test.rb +++ b/engines/support/test/unit/ticket_test.rb diff --git a/lib/extensions/couchrest.rb b/lib/extensions/couchrest.rb index a9a195e..95f5d92 100644 --- a/lib/extensions/couchrest.rb +++ b/lib/extensions/couchrest.rb @@ -45,7 +45,7 @@ module CouchRest def self.load_all_models_with_engines self.load_all_models_without_engines return unless defined?(Rails) - Dir[Rails.root + '*/app/models/**/*.rb'].each do |path| + Dir[Rails.root + 'engines/*/app/models/**/*.rb'].each do |path| require path end end diff --git a/lib/tasks/test.rake b/lib/tasks/test.rake index 3c87b45..d96b625 100644 --- a/lib/tasks/test.rake +++ b/lib/tasks/test.rake @@ -1,18 +1,11 @@ namespace :test do - Rails::SubTestTask.new(:units => "test:prepare") do |t| - t.libs << "test" - t.pattern = '*/test/unit/**/*_test.rb' - end - - Rails::SubTestTask.new(:functionals => "test:prepare") do |t| - t.libs << "test" - t.pattern = '*/test/functional/**/*_test.rb' - end - - Rails::SubTestTask.new(:integration => "test:prepare") do |t| - t.libs << "test" - t.pattern = '*/test/integration/**/*_test.rb' + [:units, :functionals, :integration].each do |type| + Rails::SubTestTask.new(type => "test:prepare") do |t| + t.libs << "test" + subdir = type.to_s.singularize + t.pattern = "engines/*/test/#{subdir}/**/*_test.rb" + end end end diff --git a/test/factories.rb b/test/factories.rb index 980e2aa..ac9333c 100644 --- a/test/factories.rb +++ b/test/factories.rb @@ -1,6 +1,8 @@ -Dir.glob(Rails.root.join('*','test','factories.rb')) do |factory_file| +ENGINE_FACTORY_FILES = Rails.root.join('engines','*','test','factories.rb') +Dir.glob(ENGINE_FACTORY_FILES) do |factory_file| require factory_file end + FactoryGirl.define do factory :user do diff --git a/test/test_helper.rb b/test/test_helper.rb index b844b90..d001ac7 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -8,7 +8,7 @@ require 'mocha/setup' Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } # Load support files from all engines -Dir["#{File.dirname(__FILE__)}/../*/test/support/**/*.rb"].each { |f| require f } +Dir["#{File.dirname(__FILE__)}/../engines/*/test/support/**/*.rb"].each { |f| require f } class ActiveSupport::TestCase # Add more helper methods to be used by all tests here... |