rails_admin 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rails_admin might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile +5 -9
- data/README.md +2 -2
- data/Rakefile +1 -1
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-affix.js +2 -2
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-alert.js +2 -2
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-button.js +2 -2
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-carousel.js +2 -2
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-collapse.js +2 -2
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-dropdown.js +1 -1
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-modal.js +1 -1
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-popover.js +1 -1
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-scrollspy.js +2 -2
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-tab.js +2 -2
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-tooltip.js +1 -1
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-transition.js +2 -2
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-typeahead.js +1 -1
- data/app/assets/javascripts/rails_admin/ra.filter-box.js +1 -1
- data/app/assets/stylesheets/rails_admin/base/theming.scss +1 -0
- data/app/assets/stylesheets/rails_admin/custom/theming.scss +1 -1
- data/app/assets/stylesheets/rails_admin/rails_admin.scss.erb +29 -0
- data/app/assets/stylesheets/rails_admin/themes/default/theming.scss +1 -1
- data/app/controllers/rails_admin/application_controller.rb +5 -5
- data/app/controllers/rails_admin/main_controller.rb +23 -27
- data/app/helpers/rails_admin/application_helper.rb +13 -12
- data/app/helpers/rails_admin/form_builder.rb +26 -18
- data/app/views/rails_admin/main/_form_nested_many.html.haml +1 -1
- data/app/views/rails_admin/main/_form_nested_one.html.haml +1 -1
- data/app/views/rails_admin/main/index.html.haml +3 -0
- data/lib/rails_admin/abstract_model.rb +10 -9
- data/lib/rails_admin/adapters/active_record.rb +21 -136
- data/lib/rails_admin/adapters/active_record/association.rb +79 -0
- data/lib/rails_admin/adapters/active_record/property.rb +50 -0
- data/lib/rails_admin/adapters/mongoid.rb +26 -222
- data/lib/rails_admin/adapters/mongoid/association.rb +105 -0
- data/lib/rails_admin/adapters/mongoid/extension.rb +1 -1
- data/lib/rails_admin/adapters/mongoid/property.rb +99 -0
- data/lib/rails_admin/bootstrap-sass/compass_functions.rb +1 -1
- data/lib/rails_admin/config.rb +5 -6
- data/lib/rails_admin/config/actions.rb +14 -12
- data/lib/rails_admin/config/actions/base.rb +1 -1
- data/lib/rails_admin/config/actions/dashboard.rb +2 -3
- data/lib/rails_admin/config/actions/edit.rb +0 -1
- data/lib/rails_admin/config/actions/index.rb +12 -10
- data/lib/rails_admin/config/actions/new.rb +0 -1
- data/lib/rails_admin/config/fields.rb +6 -8
- data/lib/rails_admin/config/fields/base.rb +40 -38
- data/lib/rails_admin/config/fields/factories/association.rb +7 -5
- data/lib/rails_admin/config/fields/factories/carrierwave.rb +6 -7
- data/lib/rails_admin/config/fields/factories/devise.rb +5 -6
- data/lib/rails_admin/config/fields/factories/dragonfly.rb +5 -6
- data/lib/rails_admin/config/fields/factories/enum.rb +5 -5
- data/lib/rails_admin/config/fields/factories/paperclip.rb +5 -6
- data/lib/rails_admin/config/fields/group.rb +2 -2
- data/lib/rails_admin/config/fields/types.rb +1 -1
- data/lib/rails_admin/config/fields/types/code_mirror.rb +2 -2
- data/lib/rails_admin/config/fields/types/datetime.rb +2 -2
- data/lib/rails_admin/config/fields/types/enum.rb +1 -1
- data/lib/rails_admin/config/fields/types/hidden.rb +4 -0
- data/lib/rails_admin/config/fields/types/json.rb +2 -3
- data/lib/rails_admin/config/fields/types/serialized.rb +2 -3
- data/lib/rails_admin/config/fields/types/string.rb +4 -4
- data/lib/rails_admin/config/fields/types/text.rb +1 -1
- data/lib/rails_admin/config/has_description.rb +12 -0
- data/lib/rails_admin/config/has_fields.rb +9 -6
- data/lib/rails_admin/config/lazy_model.rb +9 -2
- data/lib/rails_admin/config/model.rb +9 -6
- data/lib/rails_admin/config/proxyable/proxy.rb +1 -1
- data/lib/rails_admin/config/sections/base.rb +2 -1
- data/lib/rails_admin/engine.rb +2 -2
- data/lib/rails_admin/extensions/history/history.rb +2 -2
- data/lib/rails_admin/extensions/paper_trail/auditing_adapter.rb +7 -7
- data/lib/rails_admin/support/core_extensions.rb +11 -24
- data/lib/rails_admin/support/csv_converter.rb +3 -3
- data/lib/rails_admin/version.rb +1 -1
- data/lib/rails_admin/version.rbc +582 -0
- data/lib/tasks/rails_admin.rake +17 -17
- data/spec/controllers/rails_admin/application_controller_spec.rb +9 -3
- data/spec/controllers/rails_admin/main_controller_spec.rb +31 -44
- data/spec/dummy_app/Gemfile +2 -2
- data/spec/dummy_app/Gemfile.lock +451 -0
- data/spec/dummy_app/app/active_record/deeply_nested_field_test.rb +3 -0
- data/spec/dummy_app/app/active_record/league.rb +1 -0
- data/spec/dummy_app/app/active_record/nested_field_test.rb +2 -0
- data/spec/dummy_app/app/active_record/player.rb +1 -1
- data/spec/dummy_app/app/mongoid/deeply_nested_field_test.rb +7 -0
- data/spec/dummy_app/app/mongoid/nested_field_test.rb +2 -0
- data/spec/dummy_app/app/mongoid/player.rb +1 -1
- data/spec/dummy_app/config/application.rb +2 -2
- data/spec/dummy_app/config/environments/production.rb +3 -1
- data/spec/dummy_app/config/initializers/inflections.rb +1 -1
- data/spec/dummy_app/db/development.sqlite3 +0 -0
- data/spec/dummy_app/db/migrate/20140412075608_create_deeply_nested_field_tests.rb +9 -0
- data/spec/dummy_app/db/schema.rb +197 -0
- data/spec/dummy_app/db/test.sqlite3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/0e28199903adc18ba5ed7000a3cfbe6be324f02c/mixins.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/0e28199903adc18ba5ed7000a3cfbe6be324f02c/theming.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/0e28199903adc18ba5ed7000a3cfbe6be324f02c/variables.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/13da384d67f852b30719b1cc62544f4829538c38/font-awesome.css.erbc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/{a4c18caca746ae8f758dd7048a48ef971eb959ea → 66bb15d356a3ae9531c123a31be7776c5874ac21}/font-awesome.css.erbc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/7a85589b70ac6319b07ac05552a98bba4b834a39/font-awesome-4-compability.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/7a85589b70ac6319b07ac05552a98bba4b834a39/mixins.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/7a85589b70ac6319b07ac05552a98bba4b834a39/theming.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/7a85589b70ac6319b07ac05552a98bba4b834a39/variables.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/92899d6fb50bc282d329302d61a5c00fa959d762/jquery-ui-1.8.7.custom.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/977fdcd1d57ae400c0a80cee764210478c5780f6/jquery.colorpicker.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/977fdcd1d57ae400c0a80cee764210478c5780f6/jquery.ui.timepicker.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/977fdcd1d57ae400c0a80cee764210478c5780f6/ra.calendar-additions.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/977fdcd1d57ae400c0a80cee764210478c5780f6/ra.filtering-multiselect.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/977fdcd1d57ae400c0a80cee764210478c5780f6/ra.widgets.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/977fdcd1d57ae400c0a80cee764210478c5780f6/rails_admin.scss.erbc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/9a24497045e3375a0450bb40eb1ffe1eb56bc709/mixins.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/9a24497045e3375a0450bb40eb1ffe1eb56bc709/theming.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/9a24497045e3375a0450bb40eb1ffe1eb56bc709/variables.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_accordion.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_alerts.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_breadcrumbs.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_button-groups.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_buttons.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_carousel.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_close.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_component-animations.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_dropdowns.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_forms.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_grid.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_hero-unit.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_labels-badges.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_layouts.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_mixins.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_modals.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_navbar.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_navs.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_pager.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_pagination.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_popovers.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_progress-bars.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_reset.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_scaffolding.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_tables.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_thumbnails.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_tooltip.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_type.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_utilities.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_variables.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a011cf534fa35e4fa0708adf6019078657586c2c/_wells.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/00d300d6e46a94efe755d7b967782cf6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/021e87bfe65a024a849db3c621f39607 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/02da6cc33425a1387089c6030cf514db +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/04880af615c5763f7808495d1676565b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/0599094d22f449fecdbc1ae48e3d901e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{fc19d3fdc1666a551faf53916eb221f2 → 05a1cb5dd09912dabae9b70b401bca8a} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{e5c209e40d853225b32e5a1299d12a2b → 06065efe9216af455ca5ae63b780842a} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{c8eda54f905c903e1e6e02455745ebe1 → 07f7c76677c34256252f23976ce6c2a1} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/0843377cd450cc8688003ba317723fae +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/09590157e2066fab782cda9a9ed1f3bb +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/0a4355e8cc379590a5aaf8542419d306 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/0b0d1bfe513877cd298f6ccd9b4a3f23 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/0b35ad462ccf12ca91cff9c51164c5a0 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/0c44ec7174a7bef3de8024dcfa5d4482 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/0f04a8cf5d989e555542213f5b5db676 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{73fab6793a6d0af328b82f18edab4988 → 1252be603446e6064e85dae1533eaa59} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/12b2ef118f691f66646eac032f7535d3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/136f479ebd2eedeb83550b4a882538e5 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/1381657fbbc4cc175ae0406c8cbdd852 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/139891d427a7b0c68b43d8ae86929dea +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/161f8f439887fb5926b02a917b2fab29 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/16fcf3e8647e7944d10e4e7f4b9f5a9e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/1a0c36fade6c1ad29bcb02fa4f106d27 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/1b26b92ae53bdc1e9f8a5afa7b72b381 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/1befe9a4bb03dc468cd7f5e7148a6a52 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/1c808680d2d3fa8a8615f4718b1952ef +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/1d12409a91dcc8c8a4965c52a7f6b099 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/1db0d2a002e581a113a91a6e93e5d4e7 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{a80063da16da646d195dc0b27473ed04 → 1dd74057b76db8f42e06cbb888f14956} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{d201f55e9eceb64707637fc80bc85bc5 → 1e7b3532f20949a13b8b69d2dddc559a} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2051323c87c06ef9fb769ff13afe1d46 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2197e41c9dda6c82b109eaa0d5adaf2f +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/22003805d8abcf11f0649bff9cef6c35 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/258dbc982e14f78732a377754ed23a4b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/26489e402a71f43f962d6055e30787d0 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{616efcc67bfabee52d03161477391fcd → 2748bd828b6b56acef77528d6547cd42} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/276e2819a676347a7de259b70679adb8 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2894746ab7d895286c1b09e42fc94281 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/28c0c99cd6d41ead252f979cef74c6c5 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{d42b17ebcbc4faf78e3193e9c3491c4e → 29034a9745ca408ed23766468a4cfb95} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{22b262696e264d2d84502479959ee62d → 29110191db8ed160ef8d9f54ee7b845d} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2943f3fe07d2ae0184c2282647d5c50e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2a421ff8fbf280e0d7323f26d2656144 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2f23e3869b68c4c9492f9497b288f6bb +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/30539f6bae0581cb548f51ee6d9d5b9b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{a497141a7b5409739452f2803b17a036 → 318296efd3e38c26a302d99d1638e4ad} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/31bfcc7896d47062b682cb7305aa9052 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/346057a4a317d5399f0faa78baf2be98 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/3497f90f250c4c14f97ab107ef52244e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/35c0b99bd6c2c8845ac223e148ee6891 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{04070d080fe78085ae4e679a8020abcc → 369e6e3f605307dfc47a1bbf544657e6} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/374aecf6aa1d05dd23ce4881c1bdd71b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/382ebccfe8b6bce742f4a2bc0c109d0f +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/39792f57ea45373a09c7ac823905cb29 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/3a3728ebf0994eb3f68ac9acf74c5904 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/3aaf980536f44c31d1d0145ba8f1721d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/3ba808481868b8a56fdf9f106eeda367 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/3bfa394512a63bc5b2338015e11e3886 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/44e79847ae7bb5c853dbfefa452355f0 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/459777cb1d30f6467da8dd53d9841bee +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/46842ce793ce3da43a6c21ef0c0e745e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/4764b71e86b2ebfa988853e0ce3bb441 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/4776d540b03f26cc6b4ad285ed6b0d10 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/4821eb4277ad6a0983c16630cd5806ae +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/485a6b0358511c73965a851ba5569014 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/49ccc514fe103c24a38f100cecb21be9 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/49de4f401551329c23b46284313de8d1 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/4f3e6b4e40b631d3d949509f32ea9bc3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/4fb06529e2126644ddf41924f5be2880 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/4fbd3f63d231f5b25d1b8eb02ecdd150 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/4ffa898a34dcdcfb92898d913da3f720 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/50bc7f0237bb1115d0b1ba1a000ead83 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5159e29eea352859ecad8605385bc97e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/528dd45dbf918c0ddef5bdb49dfb7b71 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/529d621e1fb6b730d9d035b143e93f69 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{76ad6e6a33c5e4ea0b16c942e0d72255 → 532fd39ff9ac0aec2bb4801712d1f558} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/54c3d5d9311b5d421c51b5d473de5b05 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{38ee84c26292e28a8c94e191c36f1dc7 → 57065caac1e358e697d955ff0fe10398} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/582efaa561d6a724a7cd82b2023e8e29 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{805aede541fd4b2ff98b78c73ac45612 → 59c191aebff69f4e76cb50860ff17df5} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5a0024fd5a8ae8322b07acc733c6caed +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5a8fc55cb58b423142d530fc066dd3a4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5b1732a4f9d541544d84a04dda73e752 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5c8e7da8dcddc72d152039cec5b173c9 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5e2e774a2e56e0db0d18d782bbcb9639 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5e9526449d8415fba07fb15676ccea95 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5eed513a4451dedcc36ec16c45745bd4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5fab61053117e1d102e0a355e4b870d3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/60dfb41cbe8cf57eb2c7502f35d7d83c +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{c571afabb6614fc6d00cdb1ede5e9cdf → 62313843f7d1e2195eca82386ddbafc4} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{765f5f6688d06f395a7a37045be388a4 → 62c62c1fc37f460232b550a3bfd8423f} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/638b254892f40165bda0c1ee6f62a6d6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/660d820d7f5e69fe59c0a7f01aaef8c6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{68bff8bd92da88d73b5006836454b64a → 676d5439060a86b6321693b6b9be8e1e} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6971f14ba0510da05dfffed8b20cbe1b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/69f59cfc7f92e5d7ebf02df73928083b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6a09089b5590cbb5dbccba9199b1aa0e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{4fb9ed3e87cc6cf7225f682d42d025f4 → 6a3006b90cd700c12f47e8040140cd40} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6ab99dcd31d6d0380c0df7baa42a2b18 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6b3e9ff481b3a040acb4e1ea61e4c8fc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6b496d90b02514c8169338b0e81b30d9 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6ce0b5fdde88a0e3ff318a0c2726d46f +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6d278334e72b135765a41e991bec0500 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{3b8bea378f0800ffa97cbbef49637930 → 6f70cf17d6c5ba22b8afddd7d39c4d70} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/729b76b484c9c4df3af759a93635b21d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/72d8ec2796504cc9604b01118b806cd8 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/74b195601a5c6c8bf93e5e7e9e6da12b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{730290c97ee6040a6a6398ed4452740a → 75c3e223b3986acf0bc6c669d16054b8} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/75ed3fc3c431fc2154cdd1f760f3210e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7795054eed96c541e38536fa029a42ad +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/77a4a5a208b8121488fd9ef247d67813 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7a3630fd098f39dba9985fda0e8fe426 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7a48b64a57ca5c40f6773e686e99f4d6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7ec629ff58b2d1e0dfe7f8c56f2fc5d7 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{f9c5ba74fe115f3df3d44c5604956fd5 → 80b17a3cb7ac72feda9fbb25c26f6e13} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{157c51a57ba6049be632334bb206c946 → 814d217e75ae27dad00e3d81982d74f0} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/818da773f93f8628449da554f9c9ff50 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/840324d228205039aaaafc391c208430 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/842328de502c909f498ccca706cd47dc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{b0554c2dbf422a9b1ae1ecbcda863c84 → 8644f94b9a1a902153cd97473ce23266} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/86e8c52a5252bb9f802efe1e263659f0 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/88f2fbf474d52591035c94b07b696ff9 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{649faf00c3ed8d416801145491fe05a7 → 89fe3f3e75d5eb4ecb1b836fd792990d} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/90af0a6c23ede9bd36b4878ae6d6db43 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{fe7b02dfb0855ad306729a9e96edc423 → 917c85b2a002bf08c90f4509aba5b538} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/920f17a87bb2678c28568f5e686a4cf1 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/925c3596709eb590d786f15a3cf817bb +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/9787fed8cb63b81fab39f58e108ff600 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/984e0e653074756d5c241ac3597b68d8 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{614dbbfdfff2cc183082d214c5992aae → 98a0e68016b3c8f8000d991b1d5bc044} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/9b9810623fa8a8a92e55d065f93340ee +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/9c834e292807614b87fc885949cb12d5 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{bb23b96bcde2f3333d85eff389f287f8 → 9cb7e509d3ae062759b6f8f6bab8ddba} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/9dab4fa8ba5260be660ee06b90e3e847 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/9f60a2e19502e0f9ad7ccffa2da50342 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{258500a191e37e7615b20a959fc30a2f → 9f6ae921af9676e92dfa15cb34d6c5c7} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{05862ba5b613377e5a6df431a1444ebc → 9f6c080a6bd27db284fbb211f3f44a6c} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/9fb546f0f37deda2fdcfd48930de0f69 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/a0bdc79935fc14ace4c5366e1ba7d527 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/a1f2411c0e3e9a52183b5f0c96fa84c8 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/a41cd406b752008bf3aaeb365d9d5e8b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{6f38449bda5916528446fdd7460a0fa5 → a50199939a6040343c5487c1dde55260} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{744fe8ec577f4cabbcbd3ff6f7bd27c0 → a51c140690c811b19b584f7245193496} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{5c5e61c9d8ac4c42be0b790514fb65ee → a718e1338ee66ca300292943d10ecef4} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/a80f3bf6075735abb8874bf40ca7a4cd +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ad452a261b3fc90b3aca85ffc630817d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ae650128fc7ca6d3f46ae75fcd55314b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{7e8403b88ae5942660a9084a8bce0acd → b026ff92c6f2dc7fd320ac770511600f} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{bac4b9227e8bb084894d38c4de8a0b85 → b0b910efc00aa49d187637e761ea0654} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{2e6ff32dfe2ff65d6adec026e0a6ba7b → b12de6d4d7f222f76b111c25f5dab178} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/b1d340312b1b800c7c5e652e1db6c9cc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/b31203d66a43ee74d976dc763f42f38a +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/b37ad5333249d4fe3ed73c81bedded02 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/b944bc4b0799f7954005e8b1a5336687 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/baf1f20ee8ed55082855f5ecfbb9db4e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{d88413426d9094f78b2e6e5c080a5c7c → bb64b78cf8f9077b4607af9563bc2675} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/be1b005418de1e9474eb5b0386031ed8 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{0fb0664e1d70f52ec933bc4787c91e67 → be7a85d942b98c98b5062e29dfcd46f2} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/bf1fd5d742a16de894278017732d1b2c +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/bffa7d2c518d584c3f1ba8b9e11cf745 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c028b349b3b1397e86ea272c9d08ea35 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c0e8c81bcd8237d4c780336407199755 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c2d3ff852bd68104e0d5e2eb2e036c1d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c2f1cee7fb8eb8492c4084ce00dc53b6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c4a2bc9c6a4ca02bd160c6bbe9af6f4d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c53a5fc1810ee9b6c3c933fd5590228e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c801ebd7cabbdbe237c427692b2f6017 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{e63e548f458d2fd51567e6af5015a38a → c87758b6b5f54876dccc4562ebd59a43} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c8d0098687bd24615beed303c14ff2fe +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ca9e3bce8e952eee601ed95dd40faa03 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/cb1a9d6c11a7eb5430d3c79838a53eb1 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/cb1d6fcc9bad898327636cf414f73b57 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/cd8be896a3bf8f11cc61e0fb6b90eb80 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{70cf8fc0dff29538ab01a076ef1e1602 → ce027086e6de68f182037504b6227485} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{0413f1d9b666153a0ce541e06c51ff0b → ce761e864d4e007adfb17e1465af09e6} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ce9ba680277b6a7f2f6c65c077e83384 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/cf435b3d4a48bc16f5cc1db8f7049596 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{cdaabef6a28054fa59175f1d68f7f7c4 → d024b2e0207c1a894ac2fc0c0e002033} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d0e11c00e2603ed5f5d107d557271c39 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d1b6047944a0a6e232951727bba44560 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{4aa7a6b2e6385af9c34efd06888f7afc → d2acbd849a5e6d1809ac9e9639dbc893} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d340fdc44c2f6684665ac60a65cbb3e3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d3e77ae2b265a7b6a4e6619ae888c02f +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d43f3b9f17586aa28c6097e3be02822f +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d533eddb21cd722c5216bc0bb88f1c6d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d6205326f914ac8b2f61b0fefad24ef1 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d79f4cb89c0bf1ea5e42bfda6e6b27c5 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d917eb39b30dcf6725854039c98a5012 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{f4cd463b22e18a328fa7c6a4b798df13 → d9a53586e66e3fff5f54d51e1de23d95} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/dbaceefd4a43cb5f9824c3d366f1c61b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ddbbe948ef6cf5bd14d9f1e2a2216eb4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/de1a47afa53c502369479e8dbbfebd9b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{882c0605bba4a8c4455047e15102045f → dee3a9569b9ee7368f88a014ba475c3a} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/e1309c718c63004add03fd7c472ec5c1 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/e3e93c085f3fc84da01f92b8d61981ae +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/e5ce6cd41375d04320a8a3150db827a3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/e613b18c9e1811582dc0aeaf095e56ae +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/e69a4b84ef07dbc0ac277803d272a6fa +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{fbf474d4ab15cae1e4280e5c1cef67af → e72ab273009021b9a7b5770457a9d13b} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{ce960f7862e687ce56fca345023588ea → ebf2567e766b39401f690380a2d00e66} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ec99299f858e97986ac4ba883d94826c +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{a175b3873092b6d0e8c2058aeed59404 → ecd86de5d0694d992088bfae90734c2c} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ecddf8ef16cc19c9634433c4f5dcc256 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ee53a7d4ca57018f0f5b0a1cd9ad39e9 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/eefb724057cd7d3f1e6fee605910718d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{0998519d4dea6d53b48711059b8c0e0e → f1f9a7b96317af0df54445979f298b68} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f342ebdd61bbcd9b91b4d09aac84b7e6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f37153d14eee1485b7d6bb7bd5196af6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f3ad8cf21b94a7a5f382482e0529fe3c +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{a9725cf6fc3c3938c609821bc9d44e75 → f3ed94b70c1f5e753460c25fcfd8d31c} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{0308928f3a84aaee3bd33e10fd9ccd1d → f4c235df53671f3c8313fd26f79aefd3} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f4f596c9ba337be0d71e4ef01d05e45c +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{7c02cc65b0df8a7bc8055290778ba086 → f6409dfab7d50b67caad519ff5309d28} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f664b1875ffd9a3b07fbfe127f92895a +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/{9e7fdec02fec6df1b4306cbb7a8679f2 → fca682269f86f37f62dfc7d3281c5220} +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/fe334a948fd2e5baccfa25d2c4abffc4 +0 -0
- data/spec/dummy_app/tmp/{cache/assets/test/sprockets/b1b5c83a14fd8b2081cbb32dd26021c4 → dragonfly/cache/body/6f/58795de38055147320844c9fa5ff32e0aa123e} +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/1c/caf9bcaeb88256d4e9505faaa85621e4b53a8d +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/25/1c81c04032b247ef575f4c929301f7f1963a39 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/2b/b5469f96538f0f47bb9c2828b5f970fae89a8d +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/2e/276270b8e924ea3de50db2ad7a265c3bc4f0a1 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/62/36dfc092f525f643ded34bb316308d788f8f41 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/70/d58ddc461366882590f97c0d9ea3af5545b5a1 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/bd/bb171fbf5c5c34eff7efc8fa78817acc7dea9d +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/d1/6c9c5ef0b7ae606b4a12cb7daf2fa7dc21acd5 +0 -0
- data/spec/factories.rb +4 -3
- data/spec/helpers/rails_admin/application_helper_spec.rb +10 -10
- data/spec/helpers/rails_admin/form_builder_spec.rb +1 -1
- data/spec/integration/authorization/cancan_spec.rb +50 -50
- data/spec/integration/basic/bulk_action/rails_admin_basic_bulk_action_spec.rb +2 -2
- data/spec/integration/basic/bulk_destroy/rails_admin_basic_bulk_destroy_spec.rb +1 -1
- data/spec/integration/basic/create/rails_admin_basic_create_spec.rb +4 -4
- data/spec/integration/basic/create/rails_admin_namespaced_model_create_spec.rb +1 -1
- data/spec/integration/basic/delete/rails_admin_basic_delete_spec.rb +12 -12
- data/spec/integration/basic/destroy/rails_admin_basic_destroy_spec.rb +3 -3
- data/spec/integration/basic/edit/rails_admin_basic_edit_spec.rb +19 -10
- data/spec/integration/basic/export/rails_admin_basic_export_spec.rb +6 -6
- data/spec/integration/basic/list/rails_admin_basic_list_spec.rb +83 -83
- data/spec/integration/basic/new/rails_admin_basic_new_spec.rb +11 -11
- data/spec/integration/basic/new/rails_admin_namespaced_model_new_spec.rb +5 -5
- data/spec/integration/basic/show/rails_admin_basic_show_spec.rb +15 -15
- data/spec/integration/basic/update/rails_admin_basic_update_spec.rb +3 -3
- data/spec/integration/config/edit/rails_admin_config_edit_spec.rb +188 -172
- data/spec/integration/config/list/rails_admin_config_list_spec.rb +25 -25
- data/spec/integration/config/show/rails_admin_config_show_spec.rb +47 -47
- data/spec/integration/history/rails_admin_history_spec.rb +1 -1
- data/spec/integration/rails_admin_spec.rb +20 -20
- data/spec/integration/relation_spec.rb +4 -4
- data/spec/orm/active_record.rb +1 -1
- data/spec/orm/mongoid.rb +1 -1
- data/spec/rails_admin/abstract_model_spec.rb +1 -1
- data/spec/rails_admin/adapters/active_record/abstract_object_spec.rb +7 -7
- data/spec/rails_admin/adapters/active_record/association_spec.rb +47 -13
- data/spec/rails_admin/adapters/active_record/property_spec.rb +4 -4
- data/spec/rails_admin/adapters/active_record_spec.rb +26 -26
- data/spec/rails_admin/adapters/mongoid/association_spec.rb +19 -19
- data/spec/rails_admin/adapters/mongoid/property_spec.rb +33 -33
- data/spec/rails_admin/adapters/mongoid_spec.rb +18 -18
- data/spec/rails_admin/config/fields/base_spec.rb +17 -17
- data/spec/rails_admin/config/fields/file_upload_spec.rb +3 -3
- data/spec/rails_admin/config/fields/types/ck_editor_spec.rb +1 -1
- data/spec/rails_admin/config/fields/types/datetime_spec.rb +1 -1
- data/spec/rails_admin/config/has_description_spec.rb +13 -0
- data/spec/rails_admin/config/has_fields_spec.rb +9 -0
- data/spec/rails_admin/config/model_spec.rb +8 -6
- data/spec/rails_admin/config_spec.rb +5 -5
- data/spec/spec_helper.rb +4 -6
- metadata +249 -704
- data/spec/dummy_app/tmp/cache/assets/test/sass/245c4be20f01db9121b0992275b77e082f23d7df/font-awesome-4-compability.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/245c4be20f01db9121b0992275b77e082f23d7df/mixins.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/245c4be20f01db9121b0992275b77e082f23d7df/theming.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/245c4be20f01db9121b0992275b77e082f23d7df/variables.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/46504e29e25493e203f6e081863c6f722ba34fce/mixins.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/46504e29e25493e203f6e081863c6f722ba34fce/theming.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/46504e29e25493e203f6e081863c6f722ba34fce/variables.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a65ba3e01aefad1ad59b6317cbb14d0560ca012b/mixins.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a65ba3e01aefad1ad59b6317cbb14d0560ca012b/theming.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/a65ba3e01aefad1ad59b6317cbb14d0560ca012b/variables.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c7aba53479ebd90acc5f6ba8fb7463fa43b1ae1c/jquery.colorpicker.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c7aba53479ebd90acc5f6ba8fb7463fa43b1ae1c/jquery.ui.timepicker.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c7aba53479ebd90acc5f6ba8fb7463fa43b1ae1c/ra.calendar-additions.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c7aba53479ebd90acc5f6ba8fb7463fa43b1ae1c/ra.filtering-multiselect.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c7aba53479ebd90acc5f6ba8fb7463fa43b1ae1c/ra.widgets.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c7aba53479ebd90acc5f6ba8fb7463fa43b1ae1c/rails_admin.scss.erbc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_accordion.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_alerts.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_breadcrumbs.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_button-groups.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_buttons.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_carousel.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_close.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_component-animations.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_dropdowns.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_forms.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_grid.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_hero-unit.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_labels-badges.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_layouts.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_mixins.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_modals.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_navbar.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_navs.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_pager.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_pagination.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_popovers.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_progress-bars.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_reset.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_scaffolding.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_tables.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_thumbnails.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_tooltip.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_type.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_utilities.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_variables.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c996a898a33b80a44fab822802e73b6e409755d2/_wells.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/ebde8a6cd2923d8c583ca746dd952b4fe080c2a1/jquery-ui-1.8.7.custom.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/ec09962bad77c2bf0bbd3ac3d62b1dd18394a9fe/font-awesome.css.erbc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/f7921645d55398fb6d7bdde41c5ade40f796381f/font-awesome.css.erbc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/00ae35fb3e76e4dcfc92065c1befd671 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/015c4267c4747404a3b95d3af4ed7ba9 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/0166686128d421b993db59eb5e22c92c +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/01692f22b535c2fe17699082a90945ba +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/03c695c9019f09cbb02f63a7ae21d79f +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/095e7d24e036c328ff8a353b062c075e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/09f8aac43754fe92352c1a0dac795897 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/0ae5c9a0fc0ac395440fd4a9475ad717 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/0c78a1295e80206cd724fb0661c58ee4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/0ed0d802514844bf10f8361f431c8cc8 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/0f72b417ab87169150cd61260cc18f4e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/0ffeca7ef1e978455e97870052f9d1fd +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/113a903e4201411e20519f7637ffcb92 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/11f4d136083919b98336de97c5a27364 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/128dcffe5acb878aaf10cb69ede11e54 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/138f18ee07be793f5e07dab566dcfa26 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/1434abacf056a5e5d4d1ccccc1c4a74e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/143fa89e22fd0f160912728242c12d20 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/169a02fa1fcf7a364d077ab82f84709c +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/174a5ce6774da56e0d025f915d2a5656 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/17783a89d916d2a158fe86409f571b21 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/1ba877deec480c6cadfabd4b925945de +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/1c166333b9ae232ca3c43174ff7ed396 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/1e909aba91e1216beb4533895a4a6ffa +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/1ef09ffd0e1376aabbac9def4652b166 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/1f5b8b4cfa174205c509a237d9607ab3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/20586cabdf2b2cc8e4088db6f5030d6a +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/20967f4e0f44fccf2c2de06aad218647 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/21af0c9472c74ff4307411a74eb52a08 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/232be00ca912eb52d6fc11676eee2f52 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/245b58f60816ff2e286784b47a8124a6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/24dcc2914999ebf715353482d3b22e51 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/24df57fbd4ef4a5d613ab3360a611f9d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/26495c65c6a62b71419149d7dd3b601b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/28d0efa20457b8a0f69ba33a6723206a +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2ab4ad958f77a3629fb62246f5604bce +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2b2ef7c0a1b34caa445ab3f962d18e30 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2c6a364370b7c915f4da7e51f0a3ec92 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2d69e41d82df0b55096aed4faa6f16c6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2e8383214772b291c87934ed8a84b955 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2e96c0383b32e1ec0746b08f3bea0c7b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2ee141a6f583c9dd1eb541353955631f +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2f60f107ce85662c1588f521bb9e2c8b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/30061ffe89ebc51d869d6b363b18a7cf +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/34ac1a6bcf81e3f9139511c7be3dfed9 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/375cc143f1184d76e6b3ff0dfb60187c +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/3822e66f2b147fd98f90c2330cb79d81 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/3a6a4e5299d2063b2dd6e980fa0551d5 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/3c44e3b6e6c89b71c859ee6552fd8abb +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/3d3f42b0d4a9f7e4c8420cf6e443f4e7 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/3da33dad56facac88295f24d4423f242 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/412440cb48736db6d625f0ecb113344d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/44ae887e2c6b3d621b42a98211455d3a +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/4557193886d8770d362ce8103d320b9f +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/460d342022e00bbd6edff25125a60ab1 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/4644169a36118452c9ea7a515bc7160f +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/4863c57f6c9bbf8cf392ba250f7e8e99 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/498ee0d8892d5d9be8a37030e3253e14 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/498f25956085afc83e15c44ffb1170e6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/51173669b5ab5031ba6c9eff069b6ae7 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/51549f1efd4de7db126ebdcd162a177a +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5395b275597f09db5cc276d8a35b1c9b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/540da504e121104c4de8155ec685b4ea +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/55b24a753c1452383f987ea056096fc8 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5770ffd20f31976fcc698399f91a9179 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/57dc08580327982fc6a9e8c0a7f168ad +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5a6cbfd514173d817be78f9d005c5680 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5c1e0096473e13c203c5c8dbba109f6c +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5cb7d2cb1418d5831b0b61ca68d18a07 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5d81d0c925da34024b39694ec5ece70b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5de4f3048b6d83b2236bfbc041ad8f11 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5e2c9668e1a6c05d64b5c7cd79ddd647 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/61427d240e248bd24f0069df4e65c395 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6198b9ce329fbce5b464acadbf0ac0a4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/63ff3018e663064066c3dae6658c36fc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/64277385d99fc22b7ff9fa9cacc0dc93 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6630fd4249b703085bdc4ec49fdbe1ac +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/66c9b69b948666df4d011498e6631eed +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/672892e6983bdb28969d20d688b445c3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/692919ee84691ede02c411d77b03b795 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/696be962f98b08b9fee127ddd7e99903 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6983eaa0179424c5a469abec763c7433 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/69d2c687f9659c7d6fb668bddb032834 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6bd55d53bef2f0dd81671f0f02f7d3ed +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6e2e2c829c91d3d0c079771ed77e6654 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6eff33b3b8fa010e960659ed61b250e6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/70b145271cbc457a0b6fd0c63af2983f +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/714f390b93b33846a6c8358e3fb0555e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/73534d2cbbfc83426629feb23debaa17 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/73a9445ff80fc2f9ac696e9e74eaec01 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/73f41636108e88974107e84d4d50801d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/743e275172178779f8b1f7fbe08dd5ea +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/75f716413cdabd240c8b85adc42ddad9 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/76b2d2bfd1e2a7f15cc7df19937ceeac +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/76c588a87498d0a7b9c4b93f78c47965 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7741691076a9f393f20d291004464ac0 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/785ad3ea421e6a5227ad573a68eb210e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7a9b30ad67a8c153e95d638e962bf463 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7aa93b56c89c66301f9154d27ea9014f +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7be36e83efedfb86b40e05e2c2e9cacf +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7c081ddde599ff1c2e0006defac49285 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7cdc6c900920406a2262f6fa90478557 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7ef92f534d8e2b3abde760d1813145d9 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7f5f2d823155f3f1da616e146d540dc1 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/8058817bc16ca329402b15240acf79b2 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/8247d046e32edac8666e98493bbe884f +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/82d50803717341c893f612a86d9a1400 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/8626144fc98fb2a6c7ede9bf55f84cac +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/86f2644ede0f2eb4d2f02e5556ea5b6d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/88552764a8f5c9748bcdfff675cc6ab4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/8864a718fb2c0b6c297e9efbd210e1f5 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/898f5214bcdb21409c81c8aade73b535 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/89f2e68d30d713d25066b4f5b838bbb4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/8f5d6d8fba731caff3f9e84487876612 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/8f80a402a5bcbcec9e20ee0e02c86edf +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/9011102569db38052e6353455fac950e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/9033f86e71fff2fac71d31cd5ca811e4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/91c2a4d8729e7c56e56029d18edb1176 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/957deb3b1ccd4757b8ffcb52b992c1da +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/96496cb0b704ef48218ac2097d541663 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/969c58767a7de67e78f9ea69195183d9 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/9719bf547e5342b131978d98efc63568 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/98c978063ce9eca4f00d35e8ee8ccccb +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/98fc2d4e0e715a67244d1a52b6bdeae0 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/99e5beb37b7130f59a12936b6b763447 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/9ad9a36052fd8184d3634f8edbf52a68 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/9ba5c2b7b2f656550a0deffc19472e39 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/a03d8b8153d1a1abc2abf53568d4dad0 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/a70e63d06a6899f97de5cf676b2c395c +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/a7db5e4584f4df99c45f12e866a0fdda +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/a913e45c92de2c4401d8e2fac7fa8631 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/aa87eff56d455dae33b13bb129cd4d3f +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ab05e2ed0d6875cf693516c7e7781cf7 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ad8d00f917f34deedc718eb3ca3c7e4b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/b1b02c2fe88268d3d00709aeca4c2eb5 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/b1f49e09b0df0a360d041969f76da859 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/b28d250e1b2b734789e45611fef58b51 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/b3bba6abd427c4ed048d92d3310b0db3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/b68666c0d1bd7d3d06bacd7767043149 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/b7ffc32371aea730fc8e27be3be8e633 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/b82696d97bda7df1d71f90b91abbbb80 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/b8e717c8deb6edc80a7a690369d13d35 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/b95121cacfdf3b3cd1197526fbc6c098 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ba4f88faafacc90d28bc5a92032f2608 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/bab598b96111d2c4545459320f65853b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/bad6153e41681471c036105dd23d0241 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/bb2bc7acd86cbf95e1ca5d978aa3b407 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/bbc9f2cbbd599b8b17e585cd2ebfc9a2 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/bbfc33e700f54452a18b23a687bb0eb4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/bca79d56857658218b1c52909032691b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/bdf7522b02a504ccefa93b613ede60c2 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/bdf867751d648676e25e36a9435e6b26 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c1750767ebbe059bea8bd4bbb76fa1da +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c1bbc7c7493a2006f9116a79be4aad50 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c215d2b1f6fc3322a7984c8a9d3c8251 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c242b461c1c4aa60e2dfa5486dc9a1a8 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c3381e393b50c9df2f8b97e4634b1349 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c402e3bddd9e25c23e52df17c8bb42a3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c61f7caef6bb75b1c15bde82e7cbbee2 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c7222887ab4570345607228eed54b7c4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c75042fd24b11c42bda9809e473817b7 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ca94c513d519f7e445bac88f9e54a029 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/cb1df5afcb1fddd92ec4d8607a53864d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/cce42e6362d03488930d9826725621b2 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/cd7e7b7526b60654a4b24a5421f74e99 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/cde5d358d89af1813033adcf5abdc012 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/cfbf539c567a96e9093d9ffbe0091ad0 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d176e8aa20803729e0406ed23696b262 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d1c2c3a2df8517e019edf30db44566b4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d35f06fe57bd03bea2483b5398b2c6f8 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d49589c905cc653514e4bd896a411fa7 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d4a49843caf12d9a6dc764014f42b895 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d4d934ea7bb7519042bc79deb3028314 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d4de3cd17da73d9e0d3c4ff1142385c3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d4e4ebef5c7337c61bee8cc343e473d4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d5150138d2eedf2573c71dbd75180e2a +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d6f728ad403bb66d90658ad0c14c025e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d778ac3298efe5fc7d13405e66041015 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/dbeda8fff4e9b5084fd1bc79a0f220d0 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/e1bba75ba340cdef270c20efd6f983ac +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/e43b6fc5e743fc33b6ec77b00fc1c916 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/e647f039e5c667d1ca130f914fb70624 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/e99b44e4a998d74f30e5d9e7d8341d8f +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ebfa68a11720cead541bcbfbca4f963c +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ec6a90e298605bce56e3e47e1c4a6d5c +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ef41f276ef9b69b0d57e4566493cc15d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/efba5ca5522c353d79d1b624f22179c1 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f19240ed3a4cea9baf3cb3f3e4e0da56 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f304c66c0c0e65597b8a53e4b9883357 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f386bc0d31bc15498eaff65440bf1ead +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f7af87fdbb1776c2a009c7b09295119b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f8d79539ba48d44d737f7ca1295354f7 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f9af64b7976ccc4a6ac9bce2ebfa6f69 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f9c9bd4d84f1951260e50180fa8ae0d2 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/fa538addbcf30ec35126541928399861 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/fa6cff1eeaad0d65a825b3ebd3045070 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/fb0757f81f5726edb2a3fecb73c190ac +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/fead2dec6a8d5e520cd797810ef316bd +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/fecf74b07833b7ffb7c32f9398520243 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/body/20/4b9c4f1d960805e206c28eac62367b6970f63b +0 -24278
- data/spec/dummy_app/tmp/dragonfly/cache/meta/03/46a517af1f9da4d5ab5ecdc312f7bbdf803328 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/0b/7b000914e059c02d6e21f12a35ecb3ff9ae01b +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/11/22cd996e03d804742cad93912d6319d3520dfd +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/11/880f2877b0e1b4c70daf50c5aa0aa3666f6653 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/30/31bcb90200393057d9b6b2d0d211399e3c89f6 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/30/9530b688b9a820167a8eab75ff6878982701ec +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/32/ecfaa88631a69c18caa248cb7a2bf1bd721313 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/3c/3c088ed5e02fbd49eefd0648b614bf4aa03b20 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/3e/7e26a0c0f3983c092bb4cef0fe1bc766c980b5 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/4f/22333c6c1ab4c55349d615a0bf9ea684345a90 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/51/33c2af3f2de67f09ae4f1f8dc2a75ae660a99f +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/52/1fbd131e1ccf6211b192df89d4a7b153f463d2 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/62/a0f5508d30a66f5d0258171c25db6f46ba7bb2 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/65/461e5f8a83ac5c614b42e26d9c481894031b8f +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/65/ac021c48e98c3cdf957a3ecffe6f9ad1ae1cae +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/68/75c5509d9768f62c6b6e360ec7eabb64cd7855 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/8c/d44b597ddd976aa8181d789dc47ee5db9f0fd7 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/8d/b0f3acf9f0a7d9a9cd850595f465375ef06a5c +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/a1/074d3bc524a272210e9e449bf84ce007fe8c73 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/ab/fd99041561b1636546886bc1a595c3a61bf350 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/b1/53315ead6fb969ab09398b850701c634e52ccc +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/b5/5236f82fba8f5a73785aa3d3e01fccb26a7502 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/b9/42133d3e272453cdcf49459f50afeeb3e98b4f +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/c5/df5cbe5c5780161cf5a127f01e93be8172aaad +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/cd/0dece1b5ce871875b9f7b3b8abfb3d9e832b36 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/cd/fb07824ede86a22c00870a8911ebfb05fbe0af +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/ce/5294eef31c9c1729ab785f4ac1136fe07f6357 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/cf/3f2a6e2ad002c2a6b4fec909e88d522f34e9f5 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/d3/288fa5fb88ad4d6e0f26054354c33c6c4070d9 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/d3/a4c250743bcd2b6389d672dbfdf9c1c11d8646 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/d5/73ec5f656166b8dda0355f1eecc70ad5bb6bd2 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/db/333d1e7697981dfab527e5c9efcfe8f517acfb +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/e1/bbc82f98d8047a8c55619dd44816bffe9d465f +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/e2/ddc6171d1bcc3c87560f0f7ef0d64cd9dad3ae +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/e2/eb10eeab8e75279f889c6ef1602f6be736da85 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/ed/b6f8ea55a628300f0a19fb18ee6a83ad950592 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/ef/ae05d9ee219dc83d9f1a7ead2351938ef628ea +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/f2/86c95220485805e5113b0fdbd621cfa5f44cd9 +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/f3/c5de7d6bae68fa2a36ab7567597fbdaca6aecf +0 -0
- data/spec/dummy_app/tmp/dragonfly/cache/meta/f9/466586eb1cc6e94f410e6c57149d3925c9662a +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe 'table relations' do
|
3
|
+
describe 'table relations', type: :request do
|
4
4
|
|
5
5
|
before do
|
6
6
|
class RelTest < Tableless
|
@@ -17,19 +17,19 @@ describe 'table relations' do
|
|
17
17
|
|
18
18
|
describe 'column with nullable fk and no model validations' do
|
19
19
|
it 'is optional' do
|
20
|
-
expect(@fields.detect { |f| f.name == :league }.required?).to
|
20
|
+
expect(@fields.detect { |f| f.name == :league }.required?).to be_falsey
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
24
|
describe 'column with non-nullable fk and no model validations' do
|
25
25
|
it 'is not required' do
|
26
|
-
expect(@fields.detect { |f| f.name == :division }.required?).to
|
26
|
+
expect(@fields.detect { |f| f.name == :division }.required?).to be_falsey
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
30
|
describe 'column with nullable fk and a numericality model validation' do
|
31
31
|
it 'is required' do
|
32
|
-
expect(@fields.detect { |f| f.name == :player }.required?).to
|
32
|
+
expect(@fields.detect { |f| f.name == :player }.required?).to be_truthy
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
data/spec/orm/active_record.rb
CHANGED
@@ -31,7 +31,7 @@ class Tableless < ActiveRecord::Base
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def column_defaults
|
34
|
-
@column_defaults ||= columns.collect { |column| [column.name, nil] }.
|
34
|
+
@column_defaults ||= columns.collect { |column| [column.name, nil] }.each_with_object({}) do |e, a|
|
35
35
|
a[e[0]] = e[1]
|
36
36
|
a
|
37
37
|
end
|
data/spec/orm/mongoid.rb
CHANGED
@@ -6,7 +6,7 @@ class Tableless
|
|
6
6
|
include Mongoid::Document
|
7
7
|
|
8
8
|
class <<self
|
9
|
-
def column(name, sql_type = 'string', default = nil,
|
9
|
+
def column(name, sql_type = 'string', default = nil, _null = true)
|
10
10
|
# ignore length
|
11
11
|
sql_type = sql_type.to_s.sub(/\(.*\)/, '').to_sym
|
12
12
|
field(name, type: {integer: Integer, string: String, text: String, date: Date, datetime: DateTime}[sql_type], default: default)
|
@@ -23,7 +23,7 @@ describe RailsAdmin::AbstractModel do
|
|
23
23
|
it 'lists elements within outbound limits' do
|
24
24
|
date_format = I18n.t('admin.misc.filter_date_format', default: I18n.t('admin.misc.filter_date_format', locale: :en)).gsub('dd', '%d').gsub('mm', '%m').gsub('yy', '%Y')
|
25
25
|
|
26
|
-
%w
|
26
|
+
%w(01/01/2012 01/02/2012 01/03/2012 01/04/2012).each do |date|
|
27
27
|
FactoryGirl.create(:field_test, date_field: Date.strptime(date, date_format))
|
28
28
|
end
|
29
29
|
expect(@abstract_model.all(filters: {'date_field' => {'1' => {v: ['', '01/02/2012', '01/03/2012'], o: 'between'}}}).count).to eq(2)
|
@@ -25,13 +25,13 @@ describe 'RailsAdmin::Adapters::ActiveRecord::AbstractObject', active_record: tr
|
|
25
25
|
end
|
26
26
|
|
27
27
|
it 'creates a Player with given attributes' do
|
28
|
-
expect(object.save).to
|
28
|
+
expect(object.save).to be_truthy
|
29
29
|
|
30
30
|
player.reload
|
31
31
|
expect(player.name).to eq(name)
|
32
32
|
expect(player.number).to eq(number)
|
33
33
|
expect(player.position).to eq(position)
|
34
|
-
expect(player.suspended).to
|
34
|
+
expect(player.suspended).to be_truthy
|
35
35
|
expect(player.draft).to be_nil
|
36
36
|
expect(player.team).to be_nil
|
37
37
|
end
|
@@ -46,13 +46,13 @@ describe 'RailsAdmin::Adapters::ActiveRecord::AbstractObject', active_record: tr
|
|
46
46
|
end
|
47
47
|
|
48
48
|
it 'creates a Player with given attributes' do
|
49
|
-
expect(object.save).to
|
49
|
+
expect(object.save).to be_truthy
|
50
50
|
|
51
51
|
player.reload
|
52
52
|
expect(player.name).to eq(name)
|
53
53
|
expect(player.number).to eq(number)
|
54
54
|
expect(player.position).to eq(position)
|
55
|
-
expect(player.suspended).to
|
55
|
+
expect(player.suspended).to be_truthy
|
56
56
|
expect(player.draft).to eq(draft.reload)
|
57
57
|
expect(player.team).to be_nil
|
58
58
|
end
|
@@ -70,7 +70,7 @@ describe 'RailsAdmin::Adapters::ActiveRecord::AbstractObject', active_record: tr
|
|
70
70
|
end
|
71
71
|
|
72
72
|
it 'creates a League with given attributes and associations' do
|
73
|
-
expect(object.save).to
|
73
|
+
expect(object.save).to be_truthy
|
74
74
|
league.reload
|
75
75
|
expect(league.name).to eq(name)
|
76
76
|
expect(league.divisions).to eq(divisions)
|
@@ -99,7 +99,7 @@ describe 'RailsAdmin::Adapters::ActiveRecord::AbstractObject', active_record: tr
|
|
99
99
|
expect(object.number).to eq(new_number)
|
100
100
|
expect(object.name).to eq(name)
|
101
101
|
expect(object.draft).to be_nil
|
102
|
-
expect(object.suspended).to
|
102
|
+
expect(object.suspended).to be_falsey
|
103
103
|
expect(object.team).to eq(new_team)
|
104
104
|
end
|
105
105
|
end
|
@@ -114,7 +114,7 @@ describe 'RailsAdmin::Adapters::ActiveRecord::AbstractObject', active_record: tr
|
|
114
114
|
end
|
115
115
|
|
116
116
|
it 'deletes the record' do
|
117
|
-
expect(Player.exists?(player.id)).to
|
117
|
+
expect(Player.exists?(player.id)).to be_falsey
|
118
118
|
end
|
119
119
|
end
|
120
120
|
|
@@ -49,12 +49,12 @@ describe 'RailsAdmin::Adapters::ActiveRecord::Association', active_record: true
|
|
49
49
|
end
|
50
50
|
|
51
51
|
it 'lists associations' do
|
52
|
-
expect(@post.associations.collect { |a|a.name.to_s }).to include(*%w
|
52
|
+
expect(@post.associations.collect { |a|a.name.to_s }).to include(*%w(a_r_blog a_r_categories a_r_comments))
|
53
53
|
end
|
54
54
|
|
55
55
|
it 'list associations types in supported [:belongs_to, :has_and_belongs_to_many, :has_many, :has_one]' do
|
56
56
|
# ActiveRecord 4.1 converts has_and_belongs_to_many association to has_many
|
57
|
-
expect((@post.associations + @blog.associations + @user.associations).collect { |a| a.type }.uniq.collect(&:to_s)).to include(*%w
|
57
|
+
expect((@post.associations + @blog.associations + @user.associations).collect { |a| a.type }.uniq.collect(&:to_s)).to include(*%w(belongs_to has_many has_one))
|
58
58
|
end
|
59
59
|
|
60
60
|
describe 'belongs_to association' do
|
@@ -68,9 +68,9 @@ describe 'RailsAdmin::Adapters::ActiveRecord::Association', active_record: true
|
|
68
68
|
expect(subject.foreign_key).to eq :a_r_blog_id
|
69
69
|
expect(subject.foreign_type).to be_nil
|
70
70
|
expect(subject.as).to be_nil
|
71
|
-
expect(subject.polymorphic?).to
|
71
|
+
expect(subject.polymorphic?).to be_falsey
|
72
72
|
expect(subject.inverse_of).to be_nil
|
73
|
-
expect(subject.read_only?).to
|
73
|
+
expect(subject.read_only?).to be_falsey
|
74
74
|
expect(subject.nested_options).to be_nil
|
75
75
|
end
|
76
76
|
end
|
@@ -86,13 +86,47 @@ describe 'RailsAdmin::Adapters::ActiveRecord::Association', active_record: true
|
|
86
86
|
expect(subject.foreign_key).to eq :ar_blog_id
|
87
87
|
expect(subject.foreign_type).to be_nil
|
88
88
|
expect(subject.as).to be_nil
|
89
|
-
expect(subject.polymorphic?).to
|
89
|
+
expect(subject.polymorphic?).to be_falsey
|
90
90
|
expect(subject.inverse_of).to be_nil
|
91
|
-
expect(subject.read_only?).to
|
91
|
+
expect(subject.read_only?).to be_falsey
|
92
92
|
expect(subject.nested_options).to be_nil
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
96
|
+
describe 'has_many association' do
|
97
|
+
let(:league) { RailsAdmin::AbstractModel.new(League) }
|
98
|
+
|
99
|
+
context 'for direct has many' do
|
100
|
+
let(:association) { league.associations.detect { |a| a.name == :divisions } }
|
101
|
+
|
102
|
+
it 'returns correct values' do
|
103
|
+
expect(association.type).to eq :has_many
|
104
|
+
expect(association.klass).to eq Division
|
105
|
+
expect(association.read_only?).to be_falsey
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
context 'for has many through marked as readonly' do
|
110
|
+
let(:association) { league.associations.detect { |a| a.name == :teams } }
|
111
|
+
|
112
|
+
it 'returns correct values' do
|
113
|
+
expect(association.type).to eq :has_many
|
114
|
+
expect(association.klass).to eq Team
|
115
|
+
expect(association.read_only?).to be_truthy
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
context 'for has many through multiple associations' do
|
120
|
+
let(:association) { league.associations.detect { |a| a.name == :players } }
|
121
|
+
|
122
|
+
it 'returns correct values' do
|
123
|
+
expect(association.type).to eq :has_many
|
124
|
+
expect(association.klass).to eq Player
|
125
|
+
expect(association.read_only?).to be_truthy
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
96
130
|
describe 'has_and_belongs_to_many association' do
|
97
131
|
subject { @post.associations.select { |a| a.name == :a_r_categories }.first }
|
98
132
|
|
@@ -102,15 +136,15 @@ describe 'RailsAdmin::Adapters::ActiveRecord::Association', active_record: true
|
|
102
136
|
expect(subject.primary_key).to eq :id
|
103
137
|
expect(subject.foreign_type).to be_nil
|
104
138
|
expect(subject.as).to be_nil
|
105
|
-
expect(subject.polymorphic?).to
|
139
|
+
expect(subject.polymorphic?).to be_falsey
|
106
140
|
expect(subject.inverse_of).to be_nil
|
107
|
-
expect(subject.read_only?).to
|
141
|
+
expect(subject.read_only?).to be_falsey
|
108
142
|
expect(subject.nested_options).to be_nil
|
109
143
|
end
|
110
144
|
end
|
111
145
|
|
112
146
|
describe 'polymorphic belongs_to association' do
|
113
|
-
before { allow(RailsAdmin::Config).to receive(:models_pool).and_return(%w
|
147
|
+
before { allow(RailsAdmin::Config).to receive(:models_pool).and_return(%w(ARBlog ARPost ARCategory ARUser ARProfile ARComment)) }
|
114
148
|
subject { @comment.associations.select { |a| a.name == :commentable }.first }
|
115
149
|
|
116
150
|
it 'returns correct values' do
|
@@ -121,9 +155,9 @@ describe 'RailsAdmin::Adapters::ActiveRecord::Association', active_record: true
|
|
121
155
|
expect(subject.foreign_key).to eq :commentable_id
|
122
156
|
expect(subject.foreign_type).to eq :commentable_type
|
123
157
|
expect(subject.as).to be_nil
|
124
|
-
expect(subject.polymorphic?).to
|
158
|
+
expect(subject.polymorphic?).to be_truthy
|
125
159
|
expect(subject.inverse_of).to be_nil
|
126
|
-
expect(subject.read_only?).to
|
160
|
+
expect(subject.read_only?).to be_falsey
|
127
161
|
expect(subject.nested_options).to be_nil
|
128
162
|
end
|
129
163
|
|
@@ -144,9 +178,9 @@ describe 'RailsAdmin::Adapters::ActiveRecord::Association', active_record: true
|
|
144
178
|
expect(subject.foreign_key).to eq :commentable_id
|
145
179
|
expect(subject.foreign_type).to be_nil
|
146
180
|
expect(subject.as).to eq :commentable
|
147
|
-
expect(subject.polymorphic?).to
|
181
|
+
expect(subject.polymorphic?).to be_falsey
|
148
182
|
expect(subject.inverse_of).to be_nil
|
149
|
-
expect(subject.read_only?).to
|
183
|
+
expect(subject.read_only?).to be_falsey
|
150
184
|
expect(subject.nested_options).to be_nil
|
151
185
|
end
|
152
186
|
end
|
@@ -9,8 +9,8 @@ describe 'RailsAdmin::Adapters::ActiveRecord::Property', active_record: true do
|
|
9
9
|
expect(subject.pretty_name).to eq 'Name'
|
10
10
|
expect(subject.type).to eq :string
|
11
11
|
expect(subject.length).to eq 100
|
12
|
-
expect(subject.nullable?).to
|
13
|
-
expect(subject.serial?).to
|
12
|
+
expect(subject.nullable?).to be_falsey
|
13
|
+
expect(subject.serial?).to be_falsey
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
@@ -21,8 +21,8 @@ describe 'RailsAdmin::Adapters::ActiveRecord::Property', active_record: true do
|
|
21
21
|
expect(subject.pretty_name).to eq 'Roles'
|
22
22
|
expect(subject.type).to eq :serialized
|
23
23
|
expect(subject.length).to eq 255
|
24
|
-
expect(subject.nullable?).to
|
25
|
-
expect(subject.serial?).to
|
24
|
+
expect(subject.nullable?).to be_truthy
|
25
|
+
expect(subject.serial?).to be_falsey
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -65,7 +65,7 @@ describe 'RailsAdmin::Adapters::ActiveRecord', active_record: true do
|
|
65
65
|
end
|
66
66
|
|
67
67
|
it 'supports limiting' do
|
68
|
-
expect(@abstract_model.all(limit: 2)).to
|
68
|
+
expect(@abstract_model.all(limit: 2).size).to eq(2)
|
69
69
|
end
|
70
70
|
|
71
71
|
it 'supports retrieval by bulk_ids' do
|
@@ -127,11 +127,11 @@ describe 'RailsAdmin::Adapters::ActiveRecord', active_record: true do
|
|
127
127
|
|
128
128
|
context 'without configuration' do
|
129
129
|
before do
|
130
|
-
Rails.configuration.
|
130
|
+
allow(Rails.configuration).to receive(:database_configuration) { nil }
|
131
131
|
end
|
132
132
|
|
133
133
|
after do
|
134
|
-
Rails.configuration.
|
134
|
+
allow(Rails.configuration).to receive(:database_configuration).and_call_original
|
135
135
|
end
|
136
136
|
|
137
137
|
it 'does not raise error' do
|
@@ -192,26 +192,26 @@ describe 'RailsAdmin::Adapters::ActiveRecord', active_record: true do
|
|
192
192
|
end
|
193
193
|
|
194
194
|
it 'supports boolean type query' do
|
195
|
-
%w
|
195
|
+
%w(false f 0).each do |value|
|
196
196
|
expect(@abstract_model.send(:build_statement, :field, :boolean, value, nil)).to eq(['(field IS NULL OR field = ?)', false])
|
197
197
|
end
|
198
|
-
%w
|
198
|
+
%w(true t 1).each do |value|
|
199
199
|
expect(@abstract_model.send(:build_statement, :field, :boolean, value, nil)).to eq(['(field = ?)', true])
|
200
200
|
end
|
201
201
|
expect(@abstract_model.send(:build_statement, :field, :boolean, 'word', nil)).to be_nil
|
202
202
|
end
|
203
203
|
|
204
204
|
it 'supports integer type query' do
|
205
|
-
expect(@abstract_model.send(:build_statement, :field, :integer, '1'
|
205
|
+
expect(@abstract_model.send(:build_statement, :field, :integer, '1', nil)).to eq(['(field = ?)', 1])
|
206
206
|
expect(@abstract_model.send(:build_statement, :field, :integer, 'word', nil)).to be_nil
|
207
|
-
expect(@abstract_model.send(:build_statement, :field, :integer, '1'
|
207
|
+
expect(@abstract_model.send(:build_statement, :field, :integer, '1', 'default')).to eq(['(field = ?)', 1])
|
208
208
|
expect(@abstract_model.send(:build_statement, :field, :integer, 'word', 'default')).to be_nil
|
209
|
-
expect(@abstract_model.send(:build_statement, :field, :integer, '1'
|
209
|
+
expect(@abstract_model.send(:build_statement, :field, :integer, '1', 'between')).to eq(['(field = ?)', 1])
|
210
210
|
expect(@abstract_model.send(:build_statement, :field, :integer, 'word', 'between')).to be_nil
|
211
|
-
expect(@abstract_model.send(:build_statement, :field, :integer, ['6', ''
|
211
|
+
expect(@abstract_model.send(:build_statement, :field, :integer, ['6', '', ''], 'default')).to eq(['(field = ?)', 6])
|
212
212
|
expect(@abstract_model.send(:build_statement, :field, :integer, ['7', '10', ''], 'default')).to eq(['(field = ?)', 7])
|
213
|
-
expect(@abstract_model.send(:build_statement, :field, :integer, ['8', ''
|
214
|
-
expect(@abstract_model.send(:build_statement, :field, :integer, %w
|
213
|
+
expect(@abstract_model.send(:build_statement, :field, :integer, ['8', '', '20'], 'default')).to eq(['(field = ?)', 8])
|
214
|
+
expect(@abstract_model.send(:build_statement, :field, :integer, %w(9 10 20), 'default')).to eq(['(field = ?)', 9])
|
215
215
|
end
|
216
216
|
|
217
217
|
it 'supports integer type range query' do
|
@@ -219,52 +219,52 @@ describe 'RailsAdmin::Adapters::ActiveRecord', active_record: true do
|
|
219
219
|
expect(@abstract_model.send(:build_statement, :field, :integer, ['2', '', ''], 'between')).to be_nil
|
220
220
|
expect(@abstract_model.send(:build_statement, :field, :integer, ['', '3', ''], 'between')).to eq(['(field >= ?)', 3])
|
221
221
|
expect(@abstract_model.send(:build_statement, :field, :integer, ['', '', '5'], 'between')).to eq(['(field <= ?)', 5])
|
222
|
-
expect(@abstract_model.send(:build_statement, :field, :integer, [''
|
223
|
-
expect(@abstract_model.send(:build_statement, :field, :integer, %w
|
222
|
+
expect(@abstract_model.send(:build_statement, :field, :integer, ['', '10', '20'], 'between')).to eq(['(field BETWEEN ? AND ?)', 10, 20])
|
223
|
+
expect(@abstract_model.send(:build_statement, :field, :integer, %w(15 10 20), 'between')).to eq(['(field BETWEEN ? AND ?)', 10, 20])
|
224
224
|
expect(@abstract_model.send(:build_statement, :field, :integer, ['', 'word1', ''], 'between')).to be_nil
|
225
|
-
expect(@abstract_model.send(:build_statement, :field, :integer, ['', ''
|
225
|
+
expect(@abstract_model.send(:build_statement, :field, :integer, ['', '', 'word2'], 'between')).to be_nil
|
226
226
|
expect(@abstract_model.send(:build_statement, :field, :integer, ['', 'word3', 'word4'], 'between')).to be_nil
|
227
227
|
end
|
228
228
|
|
229
229
|
it 'supports both decimal and float type queries' do
|
230
230
|
expect(@abstract_model.send(:build_statement, :field, :decimal, '1.1', nil)).to eq(['(field = ?)', 1.1])
|
231
231
|
expect(@abstract_model.send(:build_statement, :field, :decimal, 'word', nil)).to be_nil
|
232
|
-
expect(@abstract_model.send(:build_statement, :field, :decimal, '1.1'
|
232
|
+
expect(@abstract_model.send(:build_statement, :field, :decimal, '1.1', 'default')).to eq(['(field = ?)', 1.1])
|
233
233
|
expect(@abstract_model.send(:build_statement, :field, :decimal, 'word', 'default')).to be_nil
|
234
|
-
expect(@abstract_model.send(:build_statement, :field, :decimal, '1.1'
|
234
|
+
expect(@abstract_model.send(:build_statement, :field, :decimal, '1.1', 'between')).to eq(['(field = ?)', 1.1])
|
235
235
|
expect(@abstract_model.send(:build_statement, :field, :decimal, 'word', 'between')).to be_nil
|
236
|
-
expect(@abstract_model.send(:build_statement, :field, :decimal, ['6.1', ''
|
236
|
+
expect(@abstract_model.send(:build_statement, :field, :decimal, ['6.1', '', ''], 'default')).to eq(['(field = ?)', 6.1])
|
237
237
|
expect(@abstract_model.send(:build_statement, :field, :decimal, ['7.1', '10.1', ''], 'default')).to eq(['(field = ?)', 7.1])
|
238
|
-
expect(@abstract_model.send(:build_statement, :field, :decimal, ['8.1', ''
|
238
|
+
expect(@abstract_model.send(:build_statement, :field, :decimal, ['8.1', '', '20.1'], 'default')).to eq(['(field = ?)', 8.1])
|
239
239
|
expect(@abstract_model.send(:build_statement, :field, :decimal, ['9.1', '10.1', '20.1'], 'default')).to eq(['(field = ?)', 9.1])
|
240
240
|
expect(@abstract_model.send(:build_statement, :field, :decimal, ['', '', ''], 'between')).to be_nil
|
241
241
|
expect(@abstract_model.send(:build_statement, :field, :decimal, ['2.1', '', ''], 'between')).to be_nil
|
242
242
|
expect(@abstract_model.send(:build_statement, :field, :decimal, ['', '3.1', ''], 'between')).to eq(['(field >= ?)', 3.1])
|
243
243
|
expect(@abstract_model.send(:build_statement, :field, :decimal, ['', '', '5.1'], 'between')).to eq(['(field <= ?)', 5.1])
|
244
|
-
expect(@abstract_model.send(:build_statement, :field, :decimal, [''
|
244
|
+
expect(@abstract_model.send(:build_statement, :field, :decimal, ['', '10.1', '20.1'], 'between')).to eq(['(field BETWEEN ? AND ?)', 10.1, 20.1])
|
245
245
|
expect(@abstract_model.send(:build_statement, :field, :decimal, ['15.1', '10.1', '20.1'], 'between')).to eq(['(field BETWEEN ? AND ?)', 10.1, 20.1])
|
246
246
|
expect(@abstract_model.send(:build_statement, :field, :decimal, ['', 'word1', ''], 'between')).to be_nil
|
247
|
-
expect(@abstract_model.send(:build_statement, :field, :decimal, ['', ''
|
247
|
+
expect(@abstract_model.send(:build_statement, :field, :decimal, ['', '', 'word2'], 'between')).to be_nil
|
248
248
|
expect(@abstract_model.send(:build_statement, :field, :decimal, ['', 'word3', 'word4'], 'between')).to be_nil
|
249
249
|
|
250
250
|
expect(@abstract_model.send(:build_statement, :field, :float, '1.1', nil)).to eq(['(field = ?)', 1.1])
|
251
251
|
expect(@abstract_model.send(:build_statement, :field, :float, 'word', nil)).to be_nil
|
252
|
-
expect(@abstract_model.send(:build_statement, :field, :float, '1.1'
|
252
|
+
expect(@abstract_model.send(:build_statement, :field, :float, '1.1', 'default')).to eq(['(field = ?)', 1.1])
|
253
253
|
expect(@abstract_model.send(:build_statement, :field, :float, 'word', 'default')).to be_nil
|
254
|
-
expect(@abstract_model.send(:build_statement, :field, :float, '1.1'
|
254
|
+
expect(@abstract_model.send(:build_statement, :field, :float, '1.1', 'between')).to eq(['(field = ?)', 1.1])
|
255
255
|
expect(@abstract_model.send(:build_statement, :field, :float, 'word', 'between')).to be_nil
|
256
|
-
expect(@abstract_model.send(:build_statement, :field, :float, ['6.1', ''
|
256
|
+
expect(@abstract_model.send(:build_statement, :field, :float, ['6.1', '', ''], 'default')).to eq(['(field = ?)', 6.1])
|
257
257
|
expect(@abstract_model.send(:build_statement, :field, :float, ['7.1', '10.1', ''], 'default')).to eq(['(field = ?)', 7.1])
|
258
|
-
expect(@abstract_model.send(:build_statement, :field, :float, ['8.1', ''
|
258
|
+
expect(@abstract_model.send(:build_statement, :field, :float, ['8.1', '', '20.1'], 'default')).to eq(['(field = ?)', 8.1])
|
259
259
|
expect(@abstract_model.send(:build_statement, :field, :float, ['9.1', '10.1', '20.1'], 'default')).to eq(['(field = ?)', 9.1])
|
260
260
|
expect(@abstract_model.send(:build_statement, :field, :float, ['', '', ''], 'between')).to be_nil
|
261
261
|
expect(@abstract_model.send(:build_statement, :field, :float, ['2.1', '', ''], 'between')).to be_nil
|
262
262
|
expect(@abstract_model.send(:build_statement, :field, :float, ['', '3.1', ''], 'between')).to eq(['(field >= ?)', 3.1])
|
263
263
|
expect(@abstract_model.send(:build_statement, :field, :float, ['', '', '5.1'], 'between')).to eq(['(field <= ?)', 5.1])
|
264
|
-
expect(@abstract_model.send(:build_statement, :field, :float, [''
|
264
|
+
expect(@abstract_model.send(:build_statement, :field, :float, ['', '10.1', '20.1'], 'between')).to eq(['(field BETWEEN ? AND ?)', 10.1, 20.1])
|
265
265
|
expect(@abstract_model.send(:build_statement, :field, :float, ['15.1', '10.1', '20.1'], 'between')).to eq(['(field BETWEEN ? AND ?)', 10.1, 20.1])
|
266
266
|
expect(@abstract_model.send(:build_statement, :field, :float, ['', 'word1', ''], 'between')).to be_nil
|
267
|
-
expect(@abstract_model.send(:build_statement, :field, :float, ['', ''
|
267
|
+
expect(@abstract_model.send(:build_statement, :field, :float, ['', '', 'word2'], 'between')).to be_nil
|
268
268
|
expect(@abstract_model.send(:build_statement, :field, :float, ['', 'word3', 'word4'], 'between')).to be_nil
|
269
269
|
end
|
270
270
|
|
@@ -75,7 +75,7 @@ describe 'RailsAdmin::Adapters::Mongoid::Association', mongoid: true do
|
|
75
75
|
end
|
76
76
|
|
77
77
|
it 'reads correct and know types in [:belongs_to, :has_and_belongs_to_many, :has_many, :has_one]' do
|
78
|
-
expect((@post.associations + @blog.associations + @user.associations).collect { |a| a.type.to_s }.uniq).to match_array %w
|
78
|
+
expect((@post.associations + @blog.associations + @user.associations).collect { |a| a.type.to_s }.uniq).to match_array %w(belongs_to has_and_belongs_to_many has_many has_one)
|
79
79
|
end
|
80
80
|
|
81
81
|
describe 'belongs_to association' do
|
@@ -90,9 +90,9 @@ describe 'RailsAdmin::Adapters::Mongoid::Association', mongoid: true do
|
|
90
90
|
expect(subject.foreign_type).to be_nil
|
91
91
|
expect(subject.foreign_inverse_of).to be_nil
|
92
92
|
expect(subject.as).to be_nil
|
93
|
-
expect(subject.polymorphic?).to
|
93
|
+
expect(subject.polymorphic?).to be_falsey
|
94
94
|
expect(subject.inverse_of).to be_nil
|
95
|
-
expect(subject.read_only?).to
|
95
|
+
expect(subject.read_only?).to be_falsey
|
96
96
|
expect(subject.nested_options).to be_nil
|
97
97
|
end
|
98
98
|
|
@@ -114,9 +114,9 @@ describe 'RailsAdmin::Adapters::Mongoid::Association', mongoid: true do
|
|
114
114
|
expect(subject.foreign_type).to be_nil
|
115
115
|
expect(subject.foreign_inverse_of).to be_nil
|
116
116
|
expect(subject.as).to be_nil
|
117
|
-
expect(subject.polymorphic?).to
|
117
|
+
expect(subject.polymorphic?).to be_falsey
|
118
118
|
expect(subject.inverse_of).to be_nil
|
119
|
-
expect(subject.read_only?).to
|
119
|
+
expect(subject.read_only?).to be_falsey
|
120
120
|
expect(subject.nested_options).to be_nil
|
121
121
|
end
|
122
122
|
end
|
@@ -133,15 +133,15 @@ describe 'RailsAdmin::Adapters::Mongoid::Association', mongoid: true do
|
|
133
133
|
expect(subject.foreign_type).to be_nil
|
134
134
|
expect(subject.foreign_inverse_of).to be_nil
|
135
135
|
expect(subject.as).to be_nil
|
136
|
-
expect(subject.polymorphic?).to
|
136
|
+
expect(subject.polymorphic?).to be_falsey
|
137
137
|
expect(subject.inverse_of).to be_nil
|
138
|
-
expect(subject.read_only?).to
|
138
|
+
expect(subject.read_only?).to be_falsey
|
139
139
|
expect(subject.nested_options).to be_nil
|
140
140
|
end
|
141
141
|
end
|
142
142
|
|
143
143
|
describe 'polymorphic belongs_to association' do
|
144
|
-
before { allow(RailsAdmin::Config).to receive(:models_pool).and_return(%w
|
144
|
+
before { allow(RailsAdmin::Config).to receive(:models_pool).and_return(%w(MongoBlog MongoPost MongoCategory MongoUser MongoProfile MongoComment)) }
|
145
145
|
subject { @comment.associations.select { |a| a.name == :commentable }.first }
|
146
146
|
|
147
147
|
it 'returns correct values' do
|
@@ -153,15 +153,15 @@ describe 'RailsAdmin::Adapters::Mongoid::Association', mongoid: true do
|
|
153
153
|
expect(subject.foreign_type).to eq :commentable_type
|
154
154
|
expect(subject.foreign_inverse_of).to be_nil
|
155
155
|
expect(subject.as).to be_nil
|
156
|
-
expect(subject.polymorphic?).to
|
156
|
+
expect(subject.polymorphic?).to be_truthy
|
157
157
|
expect(subject.inverse_of).to be_nil
|
158
|
-
expect(subject.read_only?).to
|
158
|
+
expect(subject.read_only?).to be_falsey
|
159
159
|
expect(subject.nested_options).to be_nil
|
160
160
|
end
|
161
161
|
end
|
162
162
|
|
163
163
|
describe 'polymorphic inverse has_many association' do
|
164
|
-
before { allow(RailsAdmin::Config).to receive(:models_pool).and_return(%w
|
164
|
+
before { allow(RailsAdmin::Config).to receive(:models_pool).and_return(%w(MongoBlog MongoPost MongoCategory MongoUser MongoProfile MongoComment)) }
|
165
165
|
subject { @blog.associations.select { |a| a.name == :mongo_comments }.first }
|
166
166
|
|
167
167
|
it 'returns correct values' do
|
@@ -173,9 +173,9 @@ describe 'RailsAdmin::Adapters::Mongoid::Association', mongoid: true do
|
|
173
173
|
expect(subject.foreign_type).to be_nil
|
174
174
|
expect(subject.foreign_inverse_of).to be_nil
|
175
175
|
expect(subject.as).to eq :commentable
|
176
|
-
expect(subject.polymorphic?).to
|
176
|
+
expect(subject.polymorphic?).to be_falsey
|
177
177
|
expect(subject.inverse_of).to be_nil
|
178
|
-
expect(subject.read_only?).to
|
178
|
+
expect(subject.read_only?).to be_falsey
|
179
179
|
expect(subject.nested_options).to be_nil
|
180
180
|
end
|
181
181
|
|
@@ -197,9 +197,9 @@ describe 'RailsAdmin::Adapters::Mongoid::Association', mongoid: true do
|
|
197
197
|
expect(subject.foreign_type).to be_nil
|
198
198
|
expect(subject.foreign_inverse_of).to be_nil
|
199
199
|
expect(subject.as).to be_nil
|
200
|
-
expect(subject.polymorphic?).to
|
200
|
+
expect(subject.polymorphic?).to be_falsey
|
201
201
|
expect(subject.inverse_of).to be_nil
|
202
|
-
expect(subject.read_only?).to
|
202
|
+
expect(subject.read_only?).to be_falsey
|
203
203
|
expect(subject.nested_options).to eq(allow_destroy: false, update_only: false)
|
204
204
|
end
|
205
205
|
end
|
@@ -215,9 +215,9 @@ describe 'RailsAdmin::Adapters::Mongoid::Association', mongoid: true do
|
|
215
215
|
expect(subject.foreign_key).to be_nil
|
216
216
|
expect(subject.foreign_type).to be_nil
|
217
217
|
expect(subject.as).to be_nil
|
218
|
-
expect(subject.polymorphic?).to
|
218
|
+
expect(subject.polymorphic?).to be_falsey
|
219
219
|
expect(subject.inverse_of).to be_nil
|
220
|
-
expect(subject.read_only?).to
|
220
|
+
expect(subject.read_only?).to be_falsey
|
221
221
|
expect(subject.nested_options).to eq(allow_destroy: false, update_only: false)
|
222
222
|
end
|
223
223
|
|
@@ -249,10 +249,10 @@ describe 'RailsAdmin::Adapters::Mongoid::Association', mongoid: true do
|
|
249
249
|
end
|
250
250
|
|
251
251
|
expect(lambda { RailsAdmin::AbstractModel.new(MongoEmbedsOne).associations.first.nested_options }).to raise_error(RuntimeError,
|
252
|
-
"Embbeded association without accepts_nested_attributes_for can't be handled by RailsAdmin,\nbecause embedded model doesn't have top-level access.\nPlease add `accepts_nested_attributes_for :mongo_embedded' line to `MongoEmbedsOne' model.\n"
|
252
|
+
"Embbeded association without accepts_nested_attributes_for can't be handled by RailsAdmin,\nbecause embedded model doesn't have top-level access.\nPlease add `accepts_nested_attributes_for :mongo_embedded' line to `MongoEmbedsOne' model.\n",
|
253
253
|
)
|
254
254
|
expect(lambda { RailsAdmin::AbstractModel.new(MongoEmbedsMany).associations.first.nested_options }).to raise_error(RuntimeError,
|
255
|
-
"Embbeded association without accepts_nested_attributes_for can't be handled by RailsAdmin,\nbecause embedded model doesn't have top-level access.\nPlease add `accepts_nested_attributes_for :mongo_embeddeds' line to `MongoEmbedsMany' model.\n"
|
255
|
+
"Embbeded association without accepts_nested_attributes_for can't be handled by RailsAdmin,\nbecause embedded model doesn't have top-level access.\nPlease add `accepts_nested_attributes_for :mongo_embeddeds' line to `MongoEmbedsMany' model.\n",
|
256
256
|
)
|
257
257
|
expect(lambda { RailsAdmin::AbstractModel.new(MongoRecursivelyEmbedsOne).associations.first.nested_options }).not_to raise_error
|
258
258
|
expect(lambda { RailsAdmin::AbstractModel.new(MongoRecursivelyEmbedsMany).associations.first.nested_options }).not_to raise_error
|