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.
- checksums.yaml +4 -4
- data/README.md +71 -0
- data/Rakefile +66 -23
- data/app/assets/stylesheets/upmin/actions.css.scss +6 -0
- data/app/assets/stylesheets/upmin/attributes.css.scss +0 -1
- data/app/assets/stylesheets/upmin/base.css.scss +18 -0
- data/app/controllers/upmin/models_controller.rb +62 -3
- data/app/views/upmin/models/new.html.haml +21 -0
- data/app/views/upmin/models/search.html.haml +6 -1
- data/app/views/upmin/models/show.html.haml +2 -2
- data/app/views/upmin/partials/actions/_action.html.haml +13 -2
- data/app/views/upmin/partials/attributes/_nilable.html.haml +14 -0
- data/app/views/upmin/partials/models/_model.html.haml +7 -2
- data/app/views/upmin/partials/models/_new_model.html.haml +44 -0
- data/config/routes.rb +5 -2
- data/lib/upmin/admin.rb +2 -0
- data/lib/upmin/klass.rb +5 -0
- data/lib/upmin/model.rb +4 -0
- data/lib/upmin/paginator.rb +1 -1
- data/lib/upmin/railties/active_record.rb +8 -7
- data/lib/upmin/railties/render_helpers.rb +6 -4
- data/lib/upmin/version.rb +1 -1
- data/spec/factories/factories.rb +16 -0
- data/spec/features/action_spec.rb +68 -0
- data/spec/features/edit_model_spec.rb +74 -0
- data/spec/features/new_model_spec.rb +68 -0
- data/spec/features/search_spec.rb +77 -0
- data/spec/spec_helper.rb +51 -0
- metadata +91 -78
- data/test/controllers/upmin/model_controller_test.rb +0 -11
- data/test/dummy/README.rdoc +0 -28
- data/test/dummy/Rakefile +0 -6
- data/test/dummy/app/assets/javascripts/application.js +0 -13
- data/test/dummy/app/assets/stylesheets/application.css +0 -15
- data/test/dummy/app/controllers/application_controller.rb +0 -5
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/bin/bundle +0 -3
- data/test/dummy/bin/rails +0 -4
- data/test/dummy/bin/rake +0 -4
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -23
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -37
- data/test/dummy/config/environments/production.rb +0 -83
- data/test/dummy/config/environments/test.rb +0 -39
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/mime_types.rb +0 -4
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -23
- data/test/dummy/config/routes.rb +0 -4
- data/test/dummy/config/secrets.yml +0 -22
- data/test/dummy/public/404.html +0 -67
- data/test/dummy/public/422.html +0 -67
- data/test/dummy/public/500.html +0 -66
- data/test/dummy/public/favicon.ico +0 -0
- data/test/helpers/upmin/model_helper_test.rb +0 -6
- data/test/integration/navigation_test.rb +0 -10
- data/test/test_helper.rb +0 -15
- data/test/upmin_test.rb +0 -7
data/test/test_helper.rb
DELETED
@@ -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
|