{"id":15405578,"url":"https://github.com/krisleech/wisper-testing","last_synced_at":"2025-04-17T01:52:51.922Z","repository":{"id":35812736,"uuid":"40095212","full_name":"krisleech/wisper-testing","owner":"krisleech","description":"Helpers for testing Wisper publisher/subscribers.","archived":false,"fork":false,"pushed_at":"2023-02-15T09:26:15.000Z","size":14,"stargazers_count":4,"open_issues_count":4,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T03:06:53.873Z","etag":null,"topics":["testing","wisper"],"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/krisleech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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-08-02T22:45:30.000Z","updated_at":"2018-07-23T19:29:02.000Z","dependencies_parsed_at":"2024-10-19T11:34:41.142Z","dependency_job_id":null,"html_url":"https://github.com/krisleech/wisper-testing","commit_stats":{"total_commits":14,"total_committers":4,"mean_commits":3.5,"dds":0.2142857142857143,"last_synced_commit":"82aadecc04e94c10c52d038618d941ae895f695e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisleech%2Fwisper-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisleech%2Fwisper-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisleech%2Fwisper-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisleech%2Fwisper-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krisleech","download_url":"https://codeload.github.com/krisleech/wisper-testing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249299679,"owners_count":21246876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["testing","wisper"],"created_at":"2024-10-01T16:17:13.226Z","updated_at":"2025-04-17T01:52:51.898Z","avatar_url":"https://github.com/krisleech.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wisper::Testing\n\n[![Build Status](https://travis-ci.org/krisleech/wisper-testing.svg?branch=master)](https://travis-ci.org/krisleech/wisper-testing)\n\nHelpers for testing Wisper publisher/subscribers.\n\n## Installation\n\n```ruby\ngem 'wisper-testing'\n```\n\n## Usage\n\nUsing `fake!` and `fake` prevents any events from being broadcast. \n\nInstead each event is recorded and can be inspected.\n\n```ruby\nWisper::Testing.fake!\n\nWisper::Testing.fake do\n  # ...\nend\n\nWisper::Testing.events # =\u003e [...]\n```\n\n### Inline\n\nUsing `inline!` and `inline` ensures all events are broadcast using the default\nbroadcaster, meaning any subscribers which are subscribed with `async: true`\nwill not be called asynchronously, but synchronously.\n\n```ruby\nWisper::Testing.inline!\n\nWisper::Testing.inline do\n  # ...\nend\n```\n\n### Restore\n\nUsing `restore!` will turn off `fake!` and `inline!` and restore the original\nconfiguration.\n\nIt is not nessesary to call this if you are using the block variations \n`fake` and `inline`.\n\n```ruby\nWisper::Testing.restore!\n```\n\n### Enabled\n\n```ruby\nWisper::Testing.enabled? # =\u003e true/false\n```\n\n## Development\n\n```\nls **/*.rb | entr -c bundle exec rspec\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/krisleech/wisper-testing.\n\nThis project is intended to be a safe, welcoming space for collaboration, and\ncontributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org)\ncode of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrisleech%2Fwisper-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrisleech%2Fwisper-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrisleech%2Fwisper-testing/lists"}