{"id":19339400,"url":"https://github.com/appfolio/inheritable_fixtures","last_synced_at":"2026-02-26T10:15:33.780Z","repository":{"id":34980475,"uuid":"39060274","full_name":"appfolio/inheritable_fixtures","owner":"appfolio","description":"Simplify fixtures for a large Rails application which is split into multiple engines. ","archived":false,"fork":false,"pushed_at":"2025-05-02T23:00:17.000Z","size":66,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":69,"default_branch":"master","last_synced_at":"2025-05-02T23:20:41.266Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"dmarx/psaw","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appfolio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-07-14T07:22:22.000Z","updated_at":"2025-05-02T22:59:10.000Z","dependencies_parsed_at":"2024-05-21T23:38:40.999Z","dependency_job_id":"221cf176-2f46-4a8d-ae77-e630d8c2cc2a","html_url":"https://github.com/appfolio/inheritable_fixtures","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/appfolio/inheritable_fixtures","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appfolio%2Finheritable_fixtures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appfolio%2Finheritable_fixtures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appfolio%2Finheritable_fixtures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appfolio%2Finheritable_fixtures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appfolio","download_url":"https://codeload.github.com/appfolio/inheritable_fixtures/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appfolio%2Finheritable_fixtures/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29856204,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T08:51:08.701Z","status":"ssl_error","status_checked_at":"2026-02-26T08:50:19.607Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T03:21:58.813Z","updated_at":"2026-02-26T10:15:33.753Z","avatar_url":"https://github.com/appfolio.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InheritableFixtures\n\n[![GitHub version](https://badge.fury.io/gh/appfolio%2Finheritable_fixtures.svg)](http://badge.fury.io/gh/appfolio%2Finheritable_fixtures)\n\nAllows Rails engines to contain fixtures for their models and for those fixtures to be automatically used in the\ndownstream engines. This is very much in line with Rails engines containing db migrations for their models and for those\n[migrations to be automatically used by the downstream engines](http://pivotallabs.com/leave-your-migrations-in-your-rails-engines/).\n\n## Installation\n\nAdd this line to your application's `Gemfile`:\n\n```ruby\ngem 'inheritable_fixtures'\n```\n\nAnd then execute:\n\n```bash\n$ bundle install\n```\n\n## Usage\n\nThis gem introduces a configuration option called `Rails.application.config.fixtures_paths`, which is by default empty.\nThe list of fixtures is determined by traversing all the `fixtures_paths` looking for fixture files.\n`Rails.root.join('test/fixtures')` is always prepended to the list, thus it has the highest precedence.\n\nWhen the application initializes, each engine adds `lib/fixtures` to the list (if that path exists).\n\n### fixtures :all\n\nTests use `fixtures :all` or something like `fixtures :users, :addresses` to initial the database with necessary test\ndata. It will now search for the fixtures in all `fixtures_paths`.\n \n### fixture\\_file\\_upload\n\nThe `fixture_file_upload` is a handy utility provided by Rails for creating `Rack::Test::UploadedFile` out of a fixture\nfile. It will now look for the fixture in all `fixtures_paths`.\n\n### rake db:fixtures:load\n\nThe `db:fixtures:load` task is used to populate a database with the fixtures. It will now load all fixtures from\n`fixtures_paths`.\n\n## Contributing\n\n1. Fork it ( https://github.com/[my-github-username]/inheritable_fixtures/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappfolio%2Finheritable_fixtures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappfolio%2Finheritable_fixtures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappfolio%2Finheritable_fixtures/lists"}