upmin-admin 0.0.38 → 0.0.39

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +71 -0
  3. data/Rakefile +66 -23
  4. data/app/assets/stylesheets/upmin/actions.css.scss +6 -0
  5. data/app/assets/stylesheets/upmin/attributes.css.scss +0 -1
  6. data/app/assets/stylesheets/upmin/base.css.scss +18 -0
  7. data/app/controllers/upmin/models_controller.rb +62 -3
  8. data/app/views/upmin/models/new.html.haml +21 -0
  9. data/app/views/upmin/models/search.html.haml +6 -1
  10. data/app/views/upmin/models/show.html.haml +2 -2
  11. data/app/views/upmin/partials/actions/_action.html.haml +13 -2
  12. data/app/views/upmin/partials/attributes/_nilable.html.haml +14 -0
  13. data/app/views/upmin/partials/models/_model.html.haml +7 -2
  14. data/app/views/upmin/partials/models/_new_model.html.haml +44 -0
  15. data/config/routes.rb +5 -2
  16. data/lib/upmin/admin.rb +2 -0
  17. data/lib/upmin/klass.rb +5 -0
  18. data/lib/upmin/model.rb +4 -0
  19. data/lib/upmin/paginator.rb +1 -1
  20. data/lib/upmin/railties/active_record.rb +8 -7
  21. data/lib/upmin/railties/render_helpers.rb +6 -4
  22. data/lib/upmin/version.rb +1 -1
  23. data/spec/factories/factories.rb +16 -0
  24. data/spec/features/action_spec.rb +68 -0
  25. data/spec/features/edit_model_spec.rb +74 -0
  26. data/spec/features/new_model_spec.rb +68 -0
  27. data/spec/features/search_spec.rb +77 -0
  28. data/spec/spec_helper.rb +51 -0
  29. metadata +91 -78
  30. data/test/controllers/upmin/model_controller_test.rb +0 -11
  31. data/test/dummy/README.rdoc +0 -28
  32. data/test/dummy/Rakefile +0 -6
  33. data/test/dummy/app/assets/javascripts/application.js +0 -13
  34. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  35. data/test/dummy/app/controllers/application_controller.rb +0 -5
  36. data/test/dummy/app/helpers/application_helper.rb +0 -2
  37. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  38. data/test/dummy/bin/bundle +0 -3
  39. data/test/dummy/bin/rails +0 -4
  40. data/test/dummy/bin/rake +0 -4
  41. data/test/dummy/config.ru +0 -4
  42. data/test/dummy/config/application.rb +0 -23
  43. data/test/dummy/config/boot.rb +0 -5
  44. data/test/dummy/config/database.yml +0 -25
  45. data/test/dummy/config/environment.rb +0 -5
  46. data/test/dummy/config/environments/development.rb +0 -37
  47. data/test/dummy/config/environments/production.rb +0 -83
  48. data/test/dummy/config/environments/test.rb +0 -39
  49. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  50. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  51. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  52. data/test/dummy/config/initializers/inflections.rb +0 -16
  53. data/test/dummy/config/initializers/mime_types.rb +0 -4
  54. data/test/dummy/config/initializers/session_store.rb +0 -3
  55. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  56. data/test/dummy/config/locales/en.yml +0 -23
  57. data/test/dummy/config/routes.rb +0 -4
  58. data/test/dummy/config/secrets.yml +0 -22
  59. data/test/dummy/public/404.html +0 -67
  60. data/test/dummy/public/422.html +0 -67
  61. data/test/dummy/public/500.html +0 -66
  62. data/test/dummy/public/favicon.ico +0 -0
  63. data/test/helpers/upmin/model_helper_test.rb +0 -6
  64. data/test/integration/navigation_test.rb +0 -10
  65. data/test/test_helper.rb +0 -15
  66. data/test/upmin_test.rb +0 -7
@@ -1,6 +0,0 @@
1
- require 'test_helper'
2
-
3
- module Upmin
4
- class ModelHelperTest < ActionView::TestCase
5
- end
6
- end
@@ -1,10 +0,0 @@
1
- require 'test_helper'
2
-
3
- class NavigationTest < ActionDispatch::IntegrationTest
4
- fixtures :all
5
-
6
- # test "the truth" do
7
- # assert true
8
- # end
9
- end
10
-
@@ -1,15 +0,0 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
- require "rails/test_help"
6
-
7
- Rails.backtrace_cleaner.remove_silencers!
8
-
9
- # Load support files
10
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
-
12
- # Load fixtures from the engine
13
- if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
- end
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class UpminTest < ActiveSupport::TestCase
4
- test "truth" do
5
- assert_kind_of Module, Upmin
6
- end
7
- end