update_request 0.0.6 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +7 -11
  3. data/app/models/update_request/request.rb +25 -22
  4. data/db/migrate/20160105123605_create_requests.rb +1 -1
  5. data/db/migrate/20160105123721_create_updated_files.rb +3 -1
  6. data/lib/update_request/engine.rb +9 -0
  7. data/lib/update_request/version.rb +1 -1
  8. data/{test → spec}/dummy/README.rdoc +0 -0
  9. data/{test → spec}/dummy/Rakefile +0 -0
  10. data/{test → spec}/dummy/app/assets/javascripts/application.js +1 -1
  11. data/{test → spec}/dummy/app/assets/stylesheets/application.css +1 -1
  12. data/{test → spec}/dummy/app/controllers/application_controller.rb +0 -0
  13. data/{test → spec}/dummy/app/helpers/application_helper.rb +0 -0
  14. data/spec/dummy/app/models/admin_user.rb +3 -0
  15. data/spec/dummy/app/models/post.rb +4 -0
  16. data/spec/dummy/app/models/user.rb +5 -0
  17. data/{test → spec}/dummy/app/views/layouts/application.html.erb +0 -0
  18. data/{test → spec}/dummy/bin/bundle +0 -0
  19. data/{test → spec}/dummy/bin/rails +1 -1
  20. data/{test → spec}/dummy/bin/rake +0 -0
  21. data/spec/dummy/bin/setup +29 -0
  22. data/{test → spec}/dummy/config.ru +1 -1
  23. data/{test → spec}/dummy/config/application.rb +1 -0
  24. data/{test → spec}/dummy/config/boot.rb +0 -0
  25. data/{test → spec}/dummy/config/database.yml +0 -0
  26. data/{test → spec}/dummy/config/environment.rb +0 -0
  27. data/{test → spec}/dummy/config/environments/development.rb +4 -0
  28. data/{test → spec}/dummy/config/environments/production.rb +13 -12
  29. data/{test → spec}/dummy/config/environments/test.rb +5 -2
  30. data/{test → spec}/dummy/config/initializers/assets.rb +3 -0
  31. data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
  32. data/{test → spec}/dummy/config/initializers/cookies_serializer.rb +1 -1
  33. data/{test → spec}/dummy/config/initializers/filter_parameter_logging.rb +0 -0
  34. data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
  35. data/{test → spec}/dummy/config/initializers/mime_types.rb +0 -0
  36. data/{test → spec}/dummy/config/initializers/session_store.rb +0 -0
  37. data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +0 -0
  38. data/{test → spec}/dummy/config/locales/en.yml +0 -0
  39. data/spec/dummy/config/routes.rb +3 -0
  40. data/{test → spec}/dummy/config/secrets.yml +2 -2
  41. data/spec/dummy/db/migrate/20180301065842_create_users.rb +9 -0
  42. data/spec/dummy/db/migrate/20180301070148_create_posts.rb +9 -0
  43. data/spec/dummy/db/migrate/20180301070316_create_admin_users.rb +8 -0
  44. data/spec/dummy/db/schema.rb +60 -0
  45. data/spec/dummy/db/test.sqlite3 +0 -0
  46. data/spec/dummy/log/test.log +12687 -0
  47. data/{test → spec}/dummy/public/404.html +0 -0
  48. data/{test → spec}/dummy/public/422.html +0 -0
  49. data/{test → spec}/dummy/public/500.html +0 -0
  50. data/{test → spec}/dummy/public/favicon.ico +0 -0
  51. data/spec/dummy/public/system/update_request/updated_files/attachments/000/000/001/original/image.png +0 -0
  52. data/spec/dummy/public/system/update_request/updated_files/attachments/000/000/002/original/image.png +0 -0
  53. data/spec/dummy/public/system/users/avatars/000/000/001/original/image.png +0 -0
  54. data/spec/factories/admin_users.rb +5 -0
  55. data/spec/factories/posts.rb +11 -0
  56. data/spec/factories/users.rb +11 -0
  57. data/{test → spec}/integration/navigation_test.rb +0 -0
  58. data/spec/models/update_request/request/apply_bang_spec.rb +97 -0
  59. data/spec/models/update_request/request/apply_spec.rb +97 -0
  60. data/spec/models/update_request/request/save_spec.rb +104 -0
  61. data/spec/rails_helper.rb +20 -0
  62. data/spec/spec_helper.rb +33 -0
  63. data/spec/support/image.png +0 -0
  64. metadata +115 -89
  65. data/test/dummy/config/routes.rb +0 -56
  66. data/test/test_helper.rb +0 -18
  67. data/test/update_request_test.rb +0 -7
@@ -1,56 +0,0 @@
1
- Rails.application.routes.draw do
2
- # The priority is based upon order of creation: first created -> highest priority.
3
- # See how all your routes lay out with "rake routes".
4
-
5
- # You can have the root of your site routed with "root"
6
- # root 'welcome#index'
7
-
8
- # Example of regular route:
9
- # get 'products/:id' => 'catalog#view'
10
-
11
- # Example of named route that can be invoked with purchase_url(id: product.id)
12
- # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
-
14
- # Example resource route (maps HTTP verbs to controller actions automatically):
15
- # resources :products
16
-
17
- # Example resource route with options:
18
- # resources :products do
19
- # member do
20
- # get 'short'
21
- # post 'toggle'
22
- # end
23
- #
24
- # collection do
25
- # get 'sold'
26
- # end
27
- # end
28
-
29
- # Example resource route with sub-resources:
30
- # resources :products do
31
- # resources :comments, :sales
32
- # resource :seller
33
- # end
34
-
35
- # Example resource route with more complex sub-resources:
36
- # resources :products do
37
- # resources :comments
38
- # resources :sales do
39
- # get 'recent', on: :collection
40
- # end
41
- # end
42
-
43
- # Example resource route with concerns:
44
- # concern :toggleable do
45
- # post 'toggle'
46
- # end
47
- # resources :posts, concerns: :toggleable
48
- # resources :photos, concerns: :toggleable
49
-
50
- # Example resource route within a namespace:
51
- # namespace :admin do
52
- # # Directs /admin/products/* to Admin::ProductsController
53
- # # (app/controllers/admin/products_controller.rb)
54
- # resources :products
55
- # end
56
- end
data/test/test_helper.rb DELETED
@@ -1,18 +0,0 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
- ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
6
- require "rails/test_help"
7
-
8
- # Filter out Minitest backtrace while allowing backtrace from other libraries
9
- # to be shown.
10
- Minitest.backtrace_filter = Minitest::BacktraceFilter.new
11
-
12
- # Load support files
13
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
14
-
15
- # Load fixtures from the engine
16
- if ActiveSupport::TestCase.method_defined?(:fixture_path=)
17
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
18
- end
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class UpdateRequestTest < ActiveSupport::TestCase
4
- test "truth" do
5
- assert_kind_of Module, UpdateRequest
6
- end
7
- end