{"id":20866674,"url":"https://github.com/tristandunn/pusher-fake-example","last_synced_at":"2025-05-13T03:09:14.008Z","repository":{"id":2447636,"uuid":"3418314","full_name":"tristandunn/pusher-fake-example","owner":"tristandunn","description":"An example of pusher-fake with RSpec to test a Rails application.","archived":false,"fork":false,"pushed_at":"2025-04-22T21:47:56.000Z","size":252,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-13T03:09:03.549Z","etag":null,"topics":["fake","pusher","pusher-api","pusher-js","pusher-service","pusherjs"],"latest_commit_sha":null,"homepage":"https://github.com/tristandunn/pusher-fake","language":"JavaScript","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/tristandunn.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2012-02-11T22:14:18.000Z","updated_at":"2025-04-22T21:47:59.000Z","dependencies_parsed_at":"2023-07-05T20:32:28.755Z","dependency_job_id":"6858e59d-5690-4f41-afa7-5c45cc4acf46","html_url":"https://github.com/tristandunn/pusher-fake-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tristandunn%2Fpusher-fake-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tristandunn%2Fpusher-fake-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tristandunn%2Fpusher-fake-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tristandunn%2Fpusher-fake-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tristandunn","download_url":"https://codeload.github.com/tristandunn/pusher-fake-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253863157,"owners_count":21975595,"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":["fake","pusher","pusher-api","pusher-js","pusher-service","pusherjs"],"created_at":"2024-11-18T05:58:48.888Z","updated_at":"2025-05-13T03:09:13.982Z","avatar_url":"https://github.com/tristandunn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pusher-fake-example [![Build Status](https://github.com/tristandunn/pusher-fake-example/workflows/CI/badge.svg)](https://github.com/tristandunn/pusher-fake-example/actions?query=workflow%3ACI)\n\nAn example of using [pusher-fake](https://github.com/tristandunn/pusher-fake) with RSpec to test a Rails application.\n\n## How-To\n\n#### 1. Use the PusherFake JS for the Pusher JS instance.\n\n```erb\n\u003cscript\u003e\n  \u003c% if defined?(PusherFake) %\u003e\n    // Test environment.\n    //\n    // Note: Ensure output is not HTML escaped, such as with the raw helper in Rails.\n    var instance = \u003c%= PusherFake.javascript %\u003e;\n  \u003c% else %\u003e\n    // Other environments, such as production.\n    var instance = new Pusher(...);\n  \u003c% end %\u003e\n\u003c/script\u003e\n```\n\n#### 2. Configure and start PusherFake in your RSpec environment.\n\n```ruby\nrequire \"pusher-fake/support/rspec\"\n```\n\n#### 3. Enjoy testing your Pusher application!\n\n## License\n\npusher-fake-example uses the MIT license. See LICENSE for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftristandunn%2Fpusher-fake-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftristandunn%2Fpusher-fake-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftristandunn%2Fpusher-fake-example/lists"}