{"id":15240483,"url":"https://github.com/greena13/test_assistant","last_synced_at":"2026-02-20T18:31:03.766Z","repository":{"id":59157565,"uuid":"60012005","full_name":"greena13/test_assistant","owner":"greena13","description":"A toolbox for increased testing efficiency with RSpec","archived":false,"fork":false,"pushed_at":"2019-04-14T13:04:14.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-05T13:25:22.806Z","etag":null,"topics":["assertions","debugger","rails","rspec","testing-tools"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/greena13.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-30T13:26:38.000Z","updated_at":"2019-04-14T13:04:16.000Z","dependencies_parsed_at":"2022-09-13T18:13:22.850Z","dependency_job_id":null,"html_url":"https://github.com/greena13/test_assistant","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/greena13/test_assistant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greena13%2Ftest_assistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greena13%2Ftest_assistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greena13%2Ftest_assistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greena13%2Ftest_assistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greena13","download_url":"https://codeload.github.com/greena13/test_assistant/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greena13%2Ftest_assistant/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29660019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T16:33:43.953Z","status":"ssl_error","status_checked_at":"2026-02-20T16:33:43.598Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["assertions","debugger","rails","rspec","testing-tools"],"created_at":"2024-09-29T11:05:12.802Z","updated_at":"2026-02-20T18:31:03.742Z","avatar_url":"https://github.com/greena13.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://svgshare.com/i/CRk.svg\" width=\"200px\" /\u003e\u003cbr/\u003e\n  \u003ch2 align=\"center\"\u003eTestAssistant\u003c/h2\u003e\n\u003c/p\u003e\n\nRSpec toolbox for writing and diagnosing Ruby on Rails tests, faster.\n\n## Features\n\n* Light-weight, scoped, lazily executed and composable tool-box, so you only include the features you want to use, when you want to use them with no unnecessary overhead\n* Automatic reporting of the context around failing tests, so you don't have to re-run them with additional logging or a debugger\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    group :test do\n      gem 'test_assistant'\n    end\n\nAnd then execute:\n\n    $ bundle\n\n## Usage\n\nTest assistant requires access to the RSpec configuration object, so add the following to either `rails_helper.rb` or `spec_helper.rb`:\n\n```ruby\nRSpec.configure do |config|\n  # other rspec configuration\n\n  TestAssistant.configure(config) do |ta_config|\n    # test assistant configuration here\n  end\nend\n```\n\n## Failure Reporting\n\n### Rendering a response context when a test fails\n\nTest Assistant can automatically render the server response in your browser when a test fails and you have applied a nominated tag.\n\n```ruby\nTestAssistant.configure(config) do |ta_config|\n  ta_config.render_failed_responses tag: :focus, type: :request\nend\n```\n\n```ruby\nRSpec.describe 'making some valid request', type: :request do\n  context 'some important context' do\n    it 'should return a correct result', focus: true do\n      # failing assertions\n    end\n  end\nend\n```\n\n### Invoking a debugger when a test fails\n\nIt's possible to invoke a debugger (`pry` is default, but fallback is to `byebug` and then `debugger`) if a test fails. This gives you access to some of the scope that the failing test ran in, allowing you to inspect objects and test variations of the failing assertion.\n\nThe `debug_failed_responses` accepts a the following options:\n\n* `tag: :\u003ctag_name\u003e` (default is `:debugger`)\n* `type: :\u003cspec_type\u003e` (default: nil - matches all test types) options.\n\n```ruby\nTestAssistant.configure(config) do |ta_config|\n    ta_config.debug_failed_responses tag: :debugger\n  end\n```\n\n```ruby\nRSpec.describe 'making some valid request', type: :request do\n  context 'some important context' do\n    it 'should return a correct result', debugger: true do\n      # failing assertions\n    end\n  end\nend\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/greena13/test_assistant/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%2Fgreena13%2Ftest_assistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreena13%2Ftest_assistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreena13%2Ftest_assistant/lists"}