{"id":19723589,"url":"https://github.com/remind101/capybara-mocktime","last_synced_at":"2025-04-29T22:31:01.066Z","repository":{"id":12560602,"uuid":"15230977","full_name":"remind101/capybara-mocktime","owner":"remind101","description":"Ruby gem for synchronizing time between tests and the browser using Timecop and Sinon.","archived":false,"fork":false,"pushed_at":"2014-01-28T18:37:44.000Z","size":124,"stargazers_count":3,"open_issues_count":1,"forks_count":4,"subscribers_count":94,"default_branch":"master","last_synced_at":"2025-04-05T20:02:52.443Z","etag":null,"topics":[],"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/remind101.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":"2013-12-16T16:33:16.000Z","updated_at":"2019-12-24T11:13:20.000Z","dependencies_parsed_at":"2022-09-05T10:51:18.920Z","dependency_job_id":null,"html_url":"https://github.com/remind101/capybara-mocktime","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/remind101%2Fcapybara-mocktime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fcapybara-mocktime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fcapybara-mocktime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fcapybara-mocktime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remind101","download_url":"https://codeload.github.com/remind101/capybara-mocktime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251592959,"owners_count":21614449,"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":[],"created_at":"2024-11-11T23:22:49.235Z","updated_at":"2025-04-29T22:31:00.571Z","avatar_url":"https://github.com/remind101.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Capybara Mocktime\n\nA Ruby gem for synchronizing time between the browser and tests using Timecop\nand Sinon.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'capybara-mocktime'\n```\n\nInclude the rack middleware to inject the fake time into the document.\n\n```ruby\nCapybara.app = Rack::Builder.app do\n  use Rack::Mocktime\n  run App\nend\n```\n\n### RSpec\n\n```ruby\nrequire 'capybara/mocktime/rspec'\n```\n\n## Usage\n\n### RSpec\n\nTag your specs with a `mock_time` value:\n\n\n```ruby\ncontext 'when the browser time is 8:30am', mock_time: '8:30am' do\n  it 'does something'\nend\n```\n\n## Contributing\n\n1. Fork it\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 new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremind101%2Fcapybara-mocktime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremind101%2Fcapybara-mocktime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremind101%2Fcapybara-mocktime/lists"}