we_bridge_rails_engine_orgs 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +34 -0
- data/Gemfile.lock +251 -0
- data/LICENSE.txt +21 -0
- data/MIT-LICENSE +20 -0
- data/README.md +41 -0
- data/README.rdoc +3 -0
- data/Rakefile +37 -0
- data/app/assets/javascripts/org_activities.js +2 -0
- data/app/assets/javascripts/org_branches.js +2 -0
- data/app/assets/javascripts/org_director_types.js +2 -0
- data/app/assets/javascripts/org_directors.js +2 -0
- data/app/assets/javascripts/org_member_tags.js +2 -0
- data/app/assets/javascripts/org_member_types.js +2 -0
- data/app/assets/javascripts/org_members.js +2 -0
- data/app/assets/javascripts/orgs.js +2 -0
- data/app/assets/stylesheets/org_activities.css +4 -0
- data/app/assets/stylesheets/org_branches.css +4 -0
- data/app/assets/stylesheets/org_director_types.css +4 -0
- data/app/assets/stylesheets/org_directors.css +4 -0
- data/app/assets/stylesheets/org_member_tags.css +4 -0
- data/app/assets/stylesheets/org_member_types.css +4 -0
- data/app/assets/stylesheets/org_members.css +4 -0
- data/app/assets/stylesheets/orgs.css +4 -0
- data/app/assets/stylesheets/scaffold.css +56 -0
- data/app/controllers/org_activities_controller.rb +8 -0
- data/app/controllers/org_branch_types_controller.rb +9 -0
- data/app/controllers/org_branches_controller.rb +9 -0
- data/app/controllers/org_director_types_controller.rb +8 -0
- data/app/controllers/org_directors_controller.rb +8 -0
- data/app/controllers/org_member_tags_controller.rb +8 -0
- data/app/controllers/org_member_types_controller.rb +8 -0
- data/app/controllers/org_members_controller.rb +8 -0
- data/app/controllers/orgs_controller.rb +8 -0
- data/app/helpers/org_activities_helper.rb +2 -0
- data/app/helpers/org_branches_helper.rb +2 -0
- data/app/helpers/org_director_types_helper.rb +2 -0
- data/app/helpers/org_directors_helper.rb +2 -0
- data/app/helpers/org_member_tags_helper.rb +2 -0
- data/app/helpers/org_member_types_helper.rb +2 -0
- data/app/helpers/org_members_helper.rb +2 -0
- data/app/helpers/orgs_helper.rb +2 -0
- data/app/mailers/.keep +0 -0
- data/app/models/.keep +0 -0
- data/app/models/org.rb +11 -0
- data/app/models/org_activity.rb +8 -0
- data/app/models/org_activity_text.rb +7 -0
- data/app/models/org_branch.rb +9 -0
- data/app/models/org_branch_member_mapping.rb +4 -0
- data/app/models/org_branch_text.rb +8 -0
- data/app/models/org_branch_type.rb +11 -0
- data/app/models/org_branch_type_text.rb +9 -0
- data/app/models/org_director_type.rb +11 -0
- data/app/models/org_director_type_text.rb +8 -0
- data/app/models/org_member.rb +28 -0
- data/app/models/org_member_tag.rb +8 -0
- data/app/models/org_member_tag_mapping.rb +5 -0
- data/app/models/org_member_tag_text.rb +7 -0
- data/app/models/org_member_text.rb +22 -0
- data/app/models/org_member_type.rb +11 -0
- data/app/models/org_member_type_text.rb +8 -0
- data/app/models/org_text.rb +7 -0
- data/app/views/.keep +0 -0
- data/app/views/common/_edit.html.builder +2 -0
- data/app/views/common/_index.html.builder +1 -0
- data/app/views/common/_new.html.builder +1 -0
- data/app/views/common/_show.html.builder +1 -0
- data/app/views/org_activities/edit.html.builder +1 -0
- data/app/views/org_activities/index.html.builder +1 -0
- data/app/views/org_activities/new.html.builder +1 -0
- data/app/views/org_activities/show.html.builder +9 -0
- data/app/views/org_branch_types/edit.html.builder +1 -0
- data/app/views/org_branch_types/index.html.builder +1 -0
- data/app/views/org_branch_types/new.html.builder +1 -0
- data/app/views/org_branch_types/show.html.builder +9 -0
- data/app/views/org_branches/edit.html.builder +1 -0
- data/app/views/org_branches/index.html.builder +1 -0
- data/app/views/org_branches/new.html.builder +1 -0
- data/app/views/org_branches/show.html.builder +9 -0
- data/app/views/org_director_types/_form.html.builder +14 -0
- data/app/views/org_director_types/edit.html.builder +1 -0
- data/app/views/org_director_types/index.html.builder +1 -0
- data/app/views/org_director_types/new.html.builder +1 -0
- data/app/views/org_director_types/show.html.builder +9 -0
- data/app/views/org_directors/edit.html.builder +1 -0
- data/app/views/org_directors/index.html.builder +1 -0
- data/app/views/org_directors/new.html.builder +1 -0
- data/app/views/org_directors/show.html.builder +9 -0
- data/app/views/org_member_tags/edit.html.builder +1 -0
- data/app/views/org_member_tags/index.html.builder +1 -0
- data/app/views/org_member_tags/new.html.builder +1 -0
- data/app/views/org_member_tags/show.html.builder +9 -0
- data/app/views/org_member_types/edit.html.builder +1 -0
- data/app/views/org_member_types/index.html.builder +1 -0
- data/app/views/org_member_types/new.html.builder +1 -0
- data/app/views/org_member_types/show.html.builder +9 -0
- data/app/views/org_members/edit.html.builder +1 -0
- data/app/views/org_members/index.html.builder +1 -0
- data/app/views/org_members/new.html.builder +1 -0
- data/app/views/org_members/show.html.builder +9 -0
- data/app/views/orgs/edit.html.builder +1 -0
- data/app/views/orgs/index.html.builder +1 -0
- data/app/views/orgs/new.html.builder +1 -0
- data/app/views/orgs/show.html.builder +13 -0
- data/bin/console +14 -0
- data/bin/rails +12 -0
- data/bin/setup +7 -0
- data/config/routes.rb +11 -0
- data/db/migrate/20150812025526_create_orgs.rb +122 -0
- data/db/migrate/20150814183339_create_org_branches_table.rb +31 -0
- data/lib/tasks/we_bridge_rails_engine_orgs_tasks.rake +4 -0
- data/lib/we_bridge_rails_engine_orgs/engine.rb +13 -0
- data/lib/we_bridge_rails_engine_orgs/version.rb +3 -0
- data/lib/we_bridge_rails_engine_orgs.rb +7 -0
- data/spec/controllers/org_activities_controller_spec.rb +159 -0
- data/spec/controllers/org_branches_controller_spec.rb +159 -0
- data/spec/controllers/org_director_types_controller_spec.rb +159 -0
- data/spec/controllers/org_directors_controller_spec.rb +159 -0
- data/spec/controllers/org_member_tags_controller_spec.rb +159 -0
- data/spec/controllers/org_member_types_controller_spec.rb +159 -0
- data/spec/controllers/org_members_controller_spec.rb +159 -0
- data/spec/controllers/orgs_controller_spec.rb +159 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +16 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +8 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.builder +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config/application.rb +28 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/provider_settings.rb +2 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/omniauth.yml +63 -0
- data/spec/dummy/config/omniauth.yml.org +63 -0
- data/spec/dummy/config/routes.rb +56 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +305 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +12006 -0
- data/spec/dummy/log/test.log +154 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/0BZmBV4GBBP2mXT-Bq5KS4qdbAh_4G6nOtgCtrH4rNE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/1RRK_DyUgv8T2sFbYEG6n6-JvG3xMvlZCTYWyE_cCXU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/1bGL2UVgPNGIpbmIxMm7Zhqz1S3_5E_-hemJChBQYKI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/2fgp297hCEN9mggAbqDhssSSfNQbXHLAGYHRcoeNyMQ.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/5sfZJfc-8-coZsxWhnG7QNi9QbTQm3LuCvHanza6jVY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/6jIW5_LzHTeo0nHF3f7SOdaqy3yT35x4obLjMhvkbRQ.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/86j6jf2oNNPSVkHMTuUJoZzGYHNEvWwMfSIAh-Q_wiI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/8NqLvJ5MoVa0NPxGOKngFS4ZRsnGK6IQfHkl-U1MUrI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/C8MAmSRXsJWbTeXMvLqOrrhN_KnBi0ut8iX91fZnhLg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/DiLk-rAzABNB75ElsvKdP_Eh-V_KblIbr3U3QclyF0o.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/E8HcM2aVb1dScqT08oJRlNyfgM0-iVkTDyQcN7cddF4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/FBJ-onmDShvDUhlQ7Jacn1hS_Nju3dClO7O861-e8q8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Fwk7r3eAJYuVAYg8_pGI1Vj1UZbV-jPP93SpN8tJyPs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/GTfNHEYnjfZXZHTGQSuEEiuCakM6lcHxCCLoBYzvdew.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/HI4BM29XxjwMtmmewg36qsoObiRYy2V2GI09aG1y_EE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/HamVqV58DQAmEiKhvw9Ng_7mraOj8HKyOMsDQM19PxM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/JigkThideDLksj6ZrufTx6bLVyJBmNDbaouRbMbZdIA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/N_o3GYuVrQiNLiqimWjkHB5CJHSCC7K3Hno-XiBGa7A.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/OAgB7vSwYbsD10H3ox3vY1aEH-zUkcjF8v9YwW6EJbY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/QYjdvCmvd_aP40208t6tH0TukGVp8vqM6esnnFq0cOA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/R7QFe2khKmUZgHX-_me15tkaeNQw9v3-d_dThxjrU8s.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/S8xObcvQGG6uj1eqGy7IvL5j3qNf9tunwD6OjNQIB_8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/SDsevrzzr3Ytog2iS84FzNXGgIU7sSQkTWTIIum4coo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/UDhlEjeIR7r4grFS_AeYBTYse5F7Ojju8yu0mScz6Ic.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/UEflM8eWRGnUEhwM2m8ZvJv1Xc807SwOZ_gUoQRxdT4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/VFEdJXCIVpXWqIFcfWoPj_KqrOCNWZ7fppjVRBFQmag.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Vs2R-eMvzDzqjlKluRmPf0JVhvWU7R94DRz7Jphhnzg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/XBt_bibQOuIG9ocaYQmJsmtJgd5BcrZ4jQ68t-439zQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/XDmpnnquS4XMFZuvuyM7io3FX2wkqXIzkTerm72ZDdo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Z9_T0XrFi2IVgHl_2slv4wpbdSa0EhpECdvLA25u9O0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/a1JHimmgPvl2EuwWDMR4OlNpJV4TufqgTpOi7Sy0TsI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/a6-MgFZdmmAL52ip1yli2iaKu4zRihIVZZPsQUaxpqI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/axFrxpUG59UHCdeJI4Kl3eOyLcRfl9uCRRi6NAgMaI4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/bme2_XB4XKGqohc1KW9Gqe-LXNbANY7bwm9oZGHaTwI.cache +3 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/c1nFo3JnHLdXWKWgLVt9jmiCmEQ2ndPoUTjNv1M1OkI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/cnXDDro8GJGKj_nlcBqX9sLGgT-w0JARPjWS5VCIRSw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/dDi4KC6wzIbiwfTi_E35Zl4Z_lErkg6q_6FK30kZLTo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eN4oUfIofrNhih1pDOVXB84IYQMEcgduHwZPSqnwIjw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/gDicoS8YCD-tJz--CXIF0afhT0rq6D_LLCh0GE7G2HI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/gDw6ULoqC7Ox2nerE01WVLVgc9XbR1WbPL-VjhbPkCA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/gRVM3WJ-shebeFmALsY4niZWEYbbzCrGP9LisSCLifg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/gVx-CmBVKIeSliU7Zb8RSFta76qvQCx1VUJhqedZdz4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/jDLYA3YpFOlifBm6AHj2J8jeacy_iljBTonj_mhod6I.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/nawE49iR8fvD7PVmDVPX_qvJCAobi3MSVVgcnibd_oQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ndmZMkzdU4-m13TcmfViszPUFu-0O_xNyv1lTqtHhkQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/oMnDzGezNNiIYic9SdXkm-yjJdYaCl7m2bHnlaFl9wg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/pzdXCzT9_-bzrPIElwqWhFt9ELoAUNtEizmWb1Tgufk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/qQhBmQ4Iwrq-oIoV6CDEB9cTt4CUDyDE6u4t9-Nz1aY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/qzfkRg1kuNevdpfIf5kcR1-9Q4buHB1dxcl03OT5iao.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/s7AiRxV9LdOVAylAE38RiKCstOIGXxlkhZ15nV8_GfY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/t3Nl1ub-k4CMd3OQC_Hmp23_aD9smrJFrL0FzajnCMk.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/u6G1NYM-f-jAFL4fAGAvCvyNa2T448YXFBCB2r6LPvA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/uBJ2DBMKAov-3rDsEAsHb0PVg0dOFcff9i0e4ESOs6c.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/wHu7ynIgCKw1GeI1xvWayqO05ZrBt_eukD-Fx249ZZ0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/wdVqCI5gqjc-qNnqeJ80WppA6paXIB4-ovEETxHP91k.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/xVM8A6y2-lU8UBw4lpLNUNMKB-LwwH01oZBu8TjnnSY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/xz0KN1Vpbne-X0aKg8iepHDn2X6_soUrkNmrQwCgPpQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ysBC3QUuPfkgfYV3nBpTw_znt9DtKC5I7erWmLCPTCM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/zd_YJiP9IEPD6jymqPu1CaH2XP0-m5SZBe9uLiYqMLI.cache +1 -0
- data/spec/dummy/tmp/pids/server.pid +1 -0
- data/spec/factories/org_activities.rb +6 -0
- data/spec/factories/org_branches.rb +6 -0
- data/spec/factories/org_director_types.rb +6 -0
- data/spec/factories/org_directors.rb +6 -0
- data/spec/factories/org_member_tags.rb +6 -0
- data/spec/factories/org_member_types.rb +6 -0
- data/spec/factories/org_members.rb +6 -0
- data/spec/factories/orgs.rb +6 -0
- data/spec/helpers/org_activities_helper_spec.rb +15 -0
- data/spec/helpers/org_branches_helper_spec.rb +15 -0
- data/spec/helpers/org_director_types_helper_spec.rb +15 -0
- data/spec/helpers/org_directors_helper_spec.rb +15 -0
- data/spec/helpers/org_member_tags_helper_spec.rb +15 -0
- data/spec/helpers/org_member_types_helper_spec.rb +15 -0
- data/spec/helpers/org_members_helper_spec.rb +15 -0
- data/spec/helpers/orgs_helper_spec.rb +15 -0
- data/spec/models/org_activity_spec.rb +5 -0
- data/spec/models/org_branch_spec.rb +5 -0
- data/spec/models/org_director_spec.rb +5 -0
- data/spec/models/org_director_type_spec.rb +5 -0
- data/spec/models/org_member_spec.rb +5 -0
- data/spec/models/org_member_tag_spec.rb +5 -0
- data/spec/models/org_member_type_spec.rb +5 -0
- data/spec/models/org_spec.rb +5 -0
- data/spec/omniauth.yml +63 -0
- data/spec/rails_helper.rb +54 -0
- data/spec/routing/org_activities_routing_spec.rb +39 -0
- data/spec/routing/org_branches_routing_spec.rb +39 -0
- data/spec/routing/org_director_types_routing_spec.rb +39 -0
- data/spec/routing/org_directors_routing_spec.rb +39 -0
- data/spec/routing/org_member_tags_routing_spec.rb +39 -0
- data/spec/routing/org_member_types_routing_spec.rb +39 -0
- data/spec/routing/org_members_routing_spec.rb +39 -0
- data/spec/routing/orgs_routing_spec.rb +39 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/views/org_activities/edit.html.builder_spec.rb +14 -0
- data/spec/views/org_activities/index.html.builder_spec.rb +14 -0
- data/spec/views/org_activities/new.html.builder_spec.rb +14 -0
- data/spec/views/org_activities/show.html.builder_spec.rb +11 -0
- data/spec/views/org_branches/edit.html.builder_spec.rb +14 -0
- data/spec/views/org_branches/index.html.builder_spec.rb +14 -0
- data/spec/views/org_branches/new.html.builder_spec.rb +14 -0
- data/spec/views/org_branches/show.html.builder_spec.rb +11 -0
- data/spec/views/org_director_types/edit.html.builder_spec.rb +14 -0
- data/spec/views/org_director_types/index.html.builder_spec.rb +14 -0
- data/spec/views/org_director_types/new.html.builder_spec.rb +14 -0
- data/spec/views/org_director_types/show.html.builder_spec.rb +11 -0
- data/spec/views/org_directors/edit.html.builder_spec.rb +14 -0
- data/spec/views/org_directors/index.html.builder_spec.rb +14 -0
- data/spec/views/org_directors/new.html.builder_spec.rb +14 -0
- data/spec/views/org_directors/show.html.builder_spec.rb +11 -0
- data/spec/views/org_member_tags/edit.html.builder_spec.rb +14 -0
- data/spec/views/org_member_tags/index.html.builder_spec.rb +14 -0
- data/spec/views/org_member_tags/new.html.builder_spec.rb +14 -0
- data/spec/views/org_member_tags/show.html.builder_spec.rb +11 -0
- data/spec/views/org_member_types/edit.html.builder_spec.rb +14 -0
- data/spec/views/org_member_types/index.html.builder_spec.rb +14 -0
- data/spec/views/org_member_types/new.html.builder_spec.rb +14 -0
- data/spec/views/org_member_types/show.html.builder_spec.rb +11 -0
- data/spec/views/org_members/edit.html.builder_spec.rb +14 -0
- data/spec/views/org_members/index.html.builder_spec.rb +14 -0
- data/spec/views/org_members/new.html.builder_spec.rb +14 -0
- data/spec/views/org_members/show.html.builder_spec.rb +11 -0
- data/spec/views/orgs/edit.html.builder_spec.rb +14 -0
- data/spec/views/orgs/index.html.builder_spec.rb +14 -0
- data/spec/views/orgs/new.html.builder_spec.rb +14 -0
- data/spec/views/orgs/show.html.builder_spec.rb +11 -0
- data/spec/we_bridge_rails_engine_orgs_spec.rb +11 -0
- data/we_bridge_rails_engine_orgs.gemspec +43 -0
- metadata +690 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
# Specs in this file have access to a helper object that includes
|
4
|
+
# the OrgActivitiesHelper. For example:
|
5
|
+
#
|
6
|
+
# describe OrgActivitiesHelper do
|
7
|
+
# describe "string concat" do
|
8
|
+
# it "concats two strings with spaces" do
|
9
|
+
# expect(helper.concat_strings("this","that")).to eq("this that")
|
10
|
+
# end
|
11
|
+
# end
|
12
|
+
# end
|
13
|
+
RSpec.describe OrgActivitiesHelper, type: :helper do
|
14
|
+
pending "add some examples to (or delete) #{__FILE__}"
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
# Specs in this file have access to a helper object that includes
|
4
|
+
# the OrgBranchesHelper. For example:
|
5
|
+
#
|
6
|
+
# describe OrgBranchesHelper do
|
7
|
+
# describe "string concat" do
|
8
|
+
# it "concats two strings with spaces" do
|
9
|
+
# expect(helper.concat_strings("this","that")).to eq("this that")
|
10
|
+
# end
|
11
|
+
# end
|
12
|
+
# end
|
13
|
+
RSpec.describe OrgBranchesHelper, type: :helper do
|
14
|
+
pending "add some examples to (or delete) #{__FILE__}"
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
# Specs in this file have access to a helper object that includes
|
4
|
+
# the OrgDirectorTypesHelper. For example:
|
5
|
+
#
|
6
|
+
# describe OrgDirectorTypesHelper do
|
7
|
+
# describe "string concat" do
|
8
|
+
# it "concats two strings with spaces" do
|
9
|
+
# expect(helper.concat_strings("this","that")).to eq("this that")
|
10
|
+
# end
|
11
|
+
# end
|
12
|
+
# end
|
13
|
+
RSpec.describe OrgDirectorTypesHelper, type: :helper do
|
14
|
+
pending "add some examples to (or delete) #{__FILE__}"
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
# Specs in this file have access to a helper object that includes
|
4
|
+
# the OrgDirectorsHelper. For example:
|
5
|
+
#
|
6
|
+
# describe OrgDirectorsHelper do
|
7
|
+
# describe "string concat" do
|
8
|
+
# it "concats two strings with spaces" do
|
9
|
+
# expect(helper.concat_strings("this","that")).to eq("this that")
|
10
|
+
# end
|
11
|
+
# end
|
12
|
+
# end
|
13
|
+
RSpec.describe OrgDirectorsHelper, type: :helper do
|
14
|
+
pending "add some examples to (or delete) #{__FILE__}"
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
# Specs in this file have access to a helper object that includes
|
4
|
+
# the OrgMemberTagsHelper. For example:
|
5
|
+
#
|
6
|
+
# describe OrgMemberTagsHelper do
|
7
|
+
# describe "string concat" do
|
8
|
+
# it "concats two strings with spaces" do
|
9
|
+
# expect(helper.concat_strings("this","that")).to eq("this that")
|
10
|
+
# end
|
11
|
+
# end
|
12
|
+
# end
|
13
|
+
RSpec.describe OrgMemberTagsHelper, type: :helper do
|
14
|
+
pending "add some examples to (or delete) #{__FILE__}"
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
# Specs in this file have access to a helper object that includes
|
4
|
+
# the OrgMemberTypesHelper. For example:
|
5
|
+
#
|
6
|
+
# describe OrgMemberTypesHelper do
|
7
|
+
# describe "string concat" do
|
8
|
+
# it "concats two strings with spaces" do
|
9
|
+
# expect(helper.concat_strings("this","that")).to eq("this that")
|
10
|
+
# end
|
11
|
+
# end
|
12
|
+
# end
|
13
|
+
RSpec.describe OrgMemberTypesHelper, type: :helper do
|
14
|
+
pending "add some examples to (or delete) #{__FILE__}"
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
# Specs in this file have access to a helper object that includes
|
4
|
+
# the OrgMembersHelper. For example:
|
5
|
+
#
|
6
|
+
# describe OrgMembersHelper do
|
7
|
+
# describe "string concat" do
|
8
|
+
# it "concats two strings with spaces" do
|
9
|
+
# expect(helper.concat_strings("this","that")).to eq("this that")
|
10
|
+
# end
|
11
|
+
# end
|
12
|
+
# end
|
13
|
+
RSpec.describe OrgMembersHelper, type: :helper do
|
14
|
+
pending "add some examples to (or delete) #{__FILE__}"
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
# Specs in this file have access to a helper object that includes
|
4
|
+
# the OrgsHelper. For example:
|
5
|
+
#
|
6
|
+
# describe OrgsHelper do
|
7
|
+
# describe "string concat" do
|
8
|
+
# it "concats two strings with spaces" do
|
9
|
+
# expect(helper.concat_strings("this","that")).to eq("this that")
|
10
|
+
# end
|
11
|
+
# end
|
12
|
+
# end
|
13
|
+
RSpec.describe OrgsHelper, type: :helper do
|
14
|
+
pending "add some examples to (or delete) #{__FILE__}"
|
15
|
+
end
|
data/spec/omniauth.yml
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
production: &production
|
2
|
+
twitter:
|
3
|
+
key: "dummy.twitter"
|
4
|
+
secret: "secret"
|
5
|
+
facebook:
|
6
|
+
key: "dummy.facebook"
|
7
|
+
secret: "secret"
|
8
|
+
scope: ""
|
9
|
+
google_oauth2:
|
10
|
+
key: "dummy.apps.googleusercontent.com"
|
11
|
+
secret: "secret"
|
12
|
+
scope: "email,profile"
|
13
|
+
name: "google"
|
14
|
+
github:
|
15
|
+
key:
|
16
|
+
secret: "secret"
|
17
|
+
scope: "user,public_repo"
|
18
|
+
hatena:
|
19
|
+
key:
|
20
|
+
secret:
|
21
|
+
linkedin:
|
22
|
+
key:
|
23
|
+
secret:
|
24
|
+
scope: 'r_basicprofile r_emailaddress r_network'
|
25
|
+
fields:
|
26
|
+
- "id"
|
27
|
+
- "first-name"
|
28
|
+
- "last-name"
|
29
|
+
- "formatted-name"
|
30
|
+
- "headline"
|
31
|
+
- "location"
|
32
|
+
- "industry"
|
33
|
+
- "summary"
|
34
|
+
- "specialties"
|
35
|
+
- "positions"
|
36
|
+
- "picture-url"
|
37
|
+
- "public-profile-url" # in r_basicprofile
|
38
|
+
- "email-address" # in r_emailaddress
|
39
|
+
- "connections" # in r_network
|
40
|
+
mixi:
|
41
|
+
key:
|
42
|
+
secret:
|
43
|
+
|
44
|
+
development: &development
|
45
|
+
<<: *production
|
46
|
+
twitter:
|
47
|
+
key:
|
48
|
+
secret:
|
49
|
+
facebook:
|
50
|
+
key:
|
51
|
+
secret:
|
52
|
+
google_oauth2:
|
53
|
+
key: "dummy.apps.googleusercontent.com"
|
54
|
+
secret: "secret"
|
55
|
+
name: "google"
|
56
|
+
github:
|
57
|
+
key:
|
58
|
+
secret:
|
59
|
+
mixi:
|
60
|
+
key:
|
61
|
+
secret:
|
62
|
+
test:
|
63
|
+
<<: *development
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
|
+
ENV['RAILS_ENV'] ||= 'test'
|
3
|
+
require File.expand_path('../dummy/config/environment', __FILE__)
|
4
|
+
# Prevent database truncation if the environment is production
|
5
|
+
abort("The Rails environment is running in production mode!") if Rails.env.production?
|
6
|
+
require 'spec_helper'
|
7
|
+
require 'rspec/rails'
|
8
|
+
# Add additional requires below this line. Rails is not loaded until this point!
|
9
|
+
|
10
|
+
# Requires supporting ruby files with custom matchers and macros, etc, in
|
11
|
+
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
12
|
+
# run as spec files by default. This means that files in spec/support that end
|
13
|
+
# in _spec.rb will both be required and run as specs, causing the specs to be
|
14
|
+
# run twice. It is recommended that you do not name files matching this glob to
|
15
|
+
# end with _spec.rb. You can configure this pattern with the --pattern
|
16
|
+
# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
|
17
|
+
#
|
18
|
+
# The following line is provided for convenience purposes. It has the downside
|
19
|
+
# of increasing the boot-up time by auto-requiring all files in the support
|
20
|
+
# directory. Alternatively, in the individual `*_spec.rb` files, manually
|
21
|
+
# require only the support files necessary.
|
22
|
+
#
|
23
|
+
# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
|
24
|
+
|
25
|
+
# Checks for pending migrations before tests are run.
|
26
|
+
# If you are not using ActiveRecord, you can remove this line.
|
27
|
+
ActiveRecord::Migration.maintain_test_schema!
|
28
|
+
|
29
|
+
RSpec.configure do |config|
|
30
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
31
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
32
|
+
|
33
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
34
|
+
# examples within a transaction, remove the following line or assign false
|
35
|
+
# instead of true.
|
36
|
+
config.use_transactional_fixtures = true
|
37
|
+
|
38
|
+
# RSpec Rails can automatically mix in different behaviours to your tests
|
39
|
+
# based on their file location, for example enabling you to call `get` and
|
40
|
+
# `post` in specs under `spec/controllers`.
|
41
|
+
#
|
42
|
+
# You can disable this behaviour by removing the line below, and instead
|
43
|
+
# explicitly tag your specs with their type, e.g.:
|
44
|
+
#
|
45
|
+
# RSpec.describe UsersController, :type => :controller do
|
46
|
+
# # ...
|
47
|
+
# end
|
48
|
+
#
|
49
|
+
# The different available types are documented in the features, such as in
|
50
|
+
# https://relishapp.com/rspec/rspec-rails/docs
|
51
|
+
config.infer_spec_type_from_file_location!
|
52
|
+
end
|
53
|
+
|
54
|
+
ActiveRecord::Migrator.migrations_paths = %w(db/migrate spec/dummy/db/migrate)
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require "rails_helper"
|
2
|
+
|
3
|
+
RSpec.describe OrgActivitiesController, type: :routing do
|
4
|
+
describe "routing" do
|
5
|
+
|
6
|
+
it "routes to #index" do
|
7
|
+
expect(:get => "/org_activities").to route_to("org_activities#index")
|
8
|
+
end
|
9
|
+
|
10
|
+
it "routes to #new" do
|
11
|
+
expect(:get => "/org_activities/new").to route_to("org_activities#new")
|
12
|
+
end
|
13
|
+
|
14
|
+
it "routes to #show" do
|
15
|
+
expect(:get => "/org_activities/1").to route_to("org_activities#show", :id => "1")
|
16
|
+
end
|
17
|
+
|
18
|
+
it "routes to #edit" do
|
19
|
+
expect(:get => "/org_activities/1/edit").to route_to("org_activities#edit", :id => "1")
|
20
|
+
end
|
21
|
+
|
22
|
+
it "routes to #create" do
|
23
|
+
expect(:post => "/org_activities").to route_to("org_activities#create")
|
24
|
+
end
|
25
|
+
|
26
|
+
it "routes to #update via PUT" do
|
27
|
+
expect(:put => "/org_activities/1").to route_to("org_activities#update", :id => "1")
|
28
|
+
end
|
29
|
+
|
30
|
+
it "routes to #update via PATCH" do
|
31
|
+
expect(:patch => "/org_activities/1").to route_to("org_activities#update", :id => "1")
|
32
|
+
end
|
33
|
+
|
34
|
+
it "routes to #destroy" do
|
35
|
+
expect(:delete => "/org_activities/1").to route_to("org_activities#destroy", :id => "1")
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require "rails_helper"
|
2
|
+
|
3
|
+
RSpec.describe OrgBranchesController, type: :routing do
|
4
|
+
describe "routing" do
|
5
|
+
|
6
|
+
it "routes to #index" do
|
7
|
+
expect(:get => "/org_branches").to route_to("org_branches#index")
|
8
|
+
end
|
9
|
+
|
10
|
+
it "routes to #new" do
|
11
|
+
expect(:get => "/org_branches/new").to route_to("org_branches#new")
|
12
|
+
end
|
13
|
+
|
14
|
+
it "routes to #show" do
|
15
|
+
expect(:get => "/org_branches/1").to route_to("org_branches#show", :id => "1")
|
16
|
+
end
|
17
|
+
|
18
|
+
it "routes to #edit" do
|
19
|
+
expect(:get => "/org_branches/1/edit").to route_to("org_branches#edit", :id => "1")
|
20
|
+
end
|
21
|
+
|
22
|
+
it "routes to #create" do
|
23
|
+
expect(:post => "/org_branches").to route_to("org_branches#create")
|
24
|
+
end
|
25
|
+
|
26
|
+
it "routes to #update via PUT" do
|
27
|
+
expect(:put => "/org_branches/1").to route_to("org_branches#update", :id => "1")
|
28
|
+
end
|
29
|
+
|
30
|
+
it "routes to #update via PATCH" do
|
31
|
+
expect(:patch => "/org_branches/1").to route_to("org_branches#update", :id => "1")
|
32
|
+
end
|
33
|
+
|
34
|
+
it "routes to #destroy" do
|
35
|
+
expect(:delete => "/org_branches/1").to route_to("org_branches#destroy", :id => "1")
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require "rails_helper"
|
2
|
+
|
3
|
+
RSpec.describe OrgDirectorTypesController, type: :routing do
|
4
|
+
describe "routing" do
|
5
|
+
|
6
|
+
it "routes to #index" do
|
7
|
+
expect(:get => "/org_director_types").to route_to("org_director_types#index")
|
8
|
+
end
|
9
|
+
|
10
|
+
it "routes to #new" do
|
11
|
+
expect(:get => "/org_director_types/new").to route_to("org_director_types#new")
|
12
|
+
end
|
13
|
+
|
14
|
+
it "routes to #show" do
|
15
|
+
expect(:get => "/org_director_types/1").to route_to("org_director_types#show", :id => "1")
|
16
|
+
end
|
17
|
+
|
18
|
+
it "routes to #edit" do
|
19
|
+
expect(:get => "/org_director_types/1/edit").to route_to("org_director_types#edit", :id => "1")
|
20
|
+
end
|
21
|
+
|
22
|
+
it "routes to #create" do
|
23
|
+
expect(:post => "/org_director_types").to route_to("org_director_types#create")
|
24
|
+
end
|
25
|
+
|
26
|
+
it "routes to #update via PUT" do
|
27
|
+
expect(:put => "/org_director_types/1").to route_to("org_director_types#update", :id => "1")
|
28
|
+
end
|
29
|
+
|
30
|
+
it "routes to #update via PATCH" do
|
31
|
+
expect(:patch => "/org_director_types/1").to route_to("org_director_types#update", :id => "1")
|
32
|
+
end
|
33
|
+
|
34
|
+
it "routes to #destroy" do
|
35
|
+
expect(:delete => "/org_director_types/1").to route_to("org_director_types#destroy", :id => "1")
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require "rails_helper"
|
2
|
+
|
3
|
+
RSpec.describe OrgDirectorsController, type: :routing do
|
4
|
+
describe "routing" do
|
5
|
+
|
6
|
+
it "routes to #index" do
|
7
|
+
expect(:get => "/org_directors").to route_to("org_directors#index")
|
8
|
+
end
|
9
|
+
|
10
|
+
it "routes to #new" do
|
11
|
+
expect(:get => "/org_directors/new").to route_to("org_directors#new")
|
12
|
+
end
|
13
|
+
|
14
|
+
it "routes to #show" do
|
15
|
+
expect(:get => "/org_directors/1").to route_to("org_directors#show", :id => "1")
|
16
|
+
end
|
17
|
+
|
18
|
+
it "routes to #edit" do
|
19
|
+
expect(:get => "/org_directors/1/edit").to route_to("org_directors#edit", :id => "1")
|
20
|
+
end
|
21
|
+
|
22
|
+
it "routes to #create" do
|
23
|
+
expect(:post => "/org_directors").to route_to("org_directors#create")
|
24
|
+
end
|
25
|
+
|
26
|
+
it "routes to #update via PUT" do
|
27
|
+
expect(:put => "/org_directors/1").to route_to("org_directors#update", :id => "1")
|
28
|
+
end
|
29
|
+
|
30
|
+
it "routes to #update via PATCH" do
|
31
|
+
expect(:patch => "/org_directors/1").to route_to("org_directors#update", :id => "1")
|
32
|
+
end
|
33
|
+
|
34
|
+
it "routes to #destroy" do
|
35
|
+
expect(:delete => "/org_directors/1").to route_to("org_directors#destroy", :id => "1")
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require "rails_helper"
|
2
|
+
|
3
|
+
RSpec.describe OrgMemberTagsController, type: :routing do
|
4
|
+
describe "routing" do
|
5
|
+
|
6
|
+
it "routes to #index" do
|
7
|
+
expect(:get => "/org_member_tags").to route_to("org_member_tags#index")
|
8
|
+
end
|
9
|
+
|
10
|
+
it "routes to #new" do
|
11
|
+
expect(:get => "/org_member_tags/new").to route_to("org_member_tags#new")
|
12
|
+
end
|
13
|
+
|
14
|
+
it "routes to #show" do
|
15
|
+
expect(:get => "/org_member_tags/1").to route_to("org_member_tags#show", :id => "1")
|
16
|
+
end
|
17
|
+
|
18
|
+
it "routes to #edit" do
|
19
|
+
expect(:get => "/org_member_tags/1/edit").to route_to("org_member_tags#edit", :id => "1")
|
20
|
+
end
|
21
|
+
|
22
|
+
it "routes to #create" do
|
23
|
+
expect(:post => "/org_member_tags").to route_to("org_member_tags#create")
|
24
|
+
end
|
25
|
+
|
26
|
+
it "routes to #update via PUT" do
|
27
|
+
expect(:put => "/org_member_tags/1").to route_to("org_member_tags#update", :id => "1")
|
28
|
+
end
|
29
|
+
|
30
|
+
it "routes to #update via PATCH" do
|
31
|
+
expect(:patch => "/org_member_tags/1").to route_to("org_member_tags#update", :id => "1")
|
32
|
+
end
|
33
|
+
|
34
|
+
it "routes to #destroy" do
|
35
|
+
expect(:delete => "/org_member_tags/1").to route_to("org_member_tags#destroy", :id => "1")
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require "rails_helper"
|
2
|
+
|
3
|
+
RSpec.describe OrgMemberTypesController, type: :routing do
|
4
|
+
describe "routing" do
|
5
|
+
|
6
|
+
it "routes to #index" do
|
7
|
+
expect(:get => "/org_member_types").to route_to("org_member_types#index")
|
8
|
+
end
|
9
|
+
|
10
|
+
it "routes to #new" do
|
11
|
+
expect(:get => "/org_member_types/new").to route_to("org_member_types#new")
|
12
|
+
end
|
13
|
+
|
14
|
+
it "routes to #show" do
|
15
|
+
expect(:get => "/org_member_types/1").to route_to("org_member_types#show", :id => "1")
|
16
|
+
end
|
17
|
+
|
18
|
+
it "routes to #edit" do
|
19
|
+
expect(:get => "/org_member_types/1/edit").to route_to("org_member_types#edit", :id => "1")
|
20
|
+
end
|
21
|
+
|
22
|
+
it "routes to #create" do
|
23
|
+
expect(:post => "/org_member_types").to route_to("org_member_types#create")
|
24
|
+
end
|
25
|
+
|
26
|
+
it "routes to #update via PUT" do
|
27
|
+
expect(:put => "/org_member_types/1").to route_to("org_member_types#update", :id => "1")
|
28
|
+
end
|
29
|
+
|
30
|
+
it "routes to #update via PATCH" do
|
31
|
+
expect(:patch => "/org_member_types/1").to route_to("org_member_types#update", :id => "1")
|
32
|
+
end
|
33
|
+
|
34
|
+
it "routes to #destroy" do
|
35
|
+
expect(:delete => "/org_member_types/1").to route_to("org_member_types#destroy", :id => "1")
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require "rails_helper"
|
2
|
+
|
3
|
+
RSpec.describe OrgMembersController, type: :routing do
|
4
|
+
describe "routing" do
|
5
|
+
|
6
|
+
it "routes to #index" do
|
7
|
+
expect(:get => "/org_members").to route_to("org_members#index")
|
8
|
+
end
|
9
|
+
|
10
|
+
it "routes to #new" do
|
11
|
+
expect(:get => "/org_members/new").to route_to("org_members#new")
|
12
|
+
end
|
13
|
+
|
14
|
+
it "routes to #show" do
|
15
|
+
expect(:get => "/org_members/1").to route_to("org_members#show", :id => "1")
|
16
|
+
end
|
17
|
+
|
18
|
+
it "routes to #edit" do
|
19
|
+
expect(:get => "/org_members/1/edit").to route_to("org_members#edit", :id => "1")
|
20
|
+
end
|
21
|
+
|
22
|
+
it "routes to #create" do
|
23
|
+
expect(:post => "/org_members").to route_to("org_members#create")
|
24
|
+
end
|
25
|
+
|
26
|
+
it "routes to #update via PUT" do
|
27
|
+
expect(:put => "/org_members/1").to route_to("org_members#update", :id => "1")
|
28
|
+
end
|
29
|
+
|
30
|
+
it "routes to #update via PATCH" do
|
31
|
+
expect(:patch => "/org_members/1").to route_to("org_members#update", :id => "1")
|
32
|
+
end
|
33
|
+
|
34
|
+
it "routes to #destroy" do
|
35
|
+
expect(:delete => "/org_members/1").to route_to("org_members#destroy", :id => "1")
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require "rails_helper"
|
2
|
+
|
3
|
+
RSpec.describe OrgsController, type: :routing do
|
4
|
+
describe "routing" do
|
5
|
+
|
6
|
+
it "routes to #index" do
|
7
|
+
expect(:get => "/orgs").to route_to("orgs#index")
|
8
|
+
end
|
9
|
+
|
10
|
+
it "routes to #new" do
|
11
|
+
expect(:get => "/orgs/new").to route_to("orgs#new")
|
12
|
+
end
|
13
|
+
|
14
|
+
it "routes to #show" do
|
15
|
+
expect(:get => "/orgs/1").to route_to("orgs#show", :id => "1")
|
16
|
+
end
|
17
|
+
|
18
|
+
it "routes to #edit" do
|
19
|
+
expect(:get => "/orgs/1/edit").to route_to("orgs#edit", :id => "1")
|
20
|
+
end
|
21
|
+
|
22
|
+
it "routes to #create" do
|
23
|
+
expect(:post => "/orgs").to route_to("orgs#create")
|
24
|
+
end
|
25
|
+
|
26
|
+
it "routes to #update via PUT" do
|
27
|
+
expect(:put => "/orgs/1").to route_to("orgs#update", :id => "1")
|
28
|
+
end
|
29
|
+
|
30
|
+
it "routes to #update via PATCH" do
|
31
|
+
expect(:patch => "/orgs/1").to route_to("orgs#update", :id => "1")
|
32
|
+
end
|
33
|
+
|
34
|
+
it "routes to #destroy" do
|
35
|
+
expect(:delete => "/orgs/1").to route_to("orgs#destroy", :id => "1")
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
RSpec.describe "org_activities/edit", type: :view do
|
4
|
+
before(:each) do
|
5
|
+
@org_activity = assign(:org_activity, OrgActivity.create!())
|
6
|
+
end
|
7
|
+
|
8
|
+
it "renders the edit org_activity form" do
|
9
|
+
render
|
10
|
+
|
11
|
+
assert_select "form[action=?][method=?]", org_activity_path(@org_activity), "post" do
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|