{"id":15604654,"url":"https://github.com/amatsuda/interactive_rspec","last_synced_at":"2025-08-25T02:31:30.092Z","repository":{"id":56877800,"uuid":"2686044","full_name":"amatsuda/interactive_rspec","owner":"amatsuda","description":"RSpec on IRB","archived":false,"fork":false,"pushed_at":"2012-02-29T18:31:21.000Z","size":116,"stargazers_count":86,"open_issues_count":5,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-01T10:49:17.743Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/amatsuda.png","metadata":{"files":{"readme":"README.rdoc","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-01T07:01:42.000Z","updated_at":"2022-03-03T14:43:05.000Z","dependencies_parsed_at":"2022-08-20T11:31:03.664Z","dependency_job_id":null,"html_url":"https://github.com/amatsuda/interactive_rspec","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/amatsuda/interactive_rspec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amatsuda%2Finteractive_rspec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amatsuda%2Finteractive_rspec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amatsuda%2Finteractive_rspec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amatsuda%2Finteractive_rspec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amatsuda","download_url":"https://codeload.github.com/amatsuda/interactive_rspec/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amatsuda%2Finteractive_rspec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271999344,"owners_count":24856182,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-10-03T03:57:41.258Z","updated_at":"2025-08-25T02:31:29.785Z","avatar_url":"https://github.com/amatsuda.png","language":"Ruby","readme":"= Interactive RSpec\n\nRSpec on IRB\n\n\n== Features\n\n=== Execute RSpec matchers in the console\n\n  \u003e (1+1).should == 3\n  F\n  \n  Failures:\n  \n    1)\n       Failure/Error: Unable to find matching line from backtrace\n         expected: 3\n              got: 2 (using ==)\n       # (irb):2\n  \n  Finished in 18.53 seconds\n  1 example, 1 failure\n  \n  Failed examples:\n  \n  rspec ./.rvm/gems/ruby-1.8.7-p334/gems/interactive_rspec-0.0.1/lib/interactive_rspec.rb:44 #\n  =\u003e false\n\nLet's call this the \"interactive RSpec\".\n\n=== Execute spec file(s) via running IRB session\n\n  \u003e irspec 'path/to/spec_file_spec.rb'\n\nThe filename parameter matches to various shortcuts such as:\n\n  'spec/foo'    =\u003e spec/foo_spec.rb\n  'models/user' =\u003e spec/models/user_spec.rb\n  'controllers' =\u003e spec/controllers/**/*_spec.rb\n  :all          =\u003e **/*_spec.rb\n\n\n== How to start\n\n=== Launch an interactive RSpec console via CLI\n\n  % irspec\n\n=== Launch an interactive RSpec console via running IRB session\n\n  \u003e require 'rubygems'\n  \u003e require 'interactive_rspec'\n  \u003e irspec\n\n== With Rails\n\n=== Bundle interactive_rspec gem\n\n  gem 'interactive_rspec'\n\n  % bundle\n\n=== Start up your Rails console\n\n  % rails c\n\n=== Then it's done!\n\nYou can check how the matchers work:\n\n  \u003e irspec\n  \u003e User.new(:name =\u003e 'matz').should_not be_valid\n\nYou can run any of the existing spec files:\n\n  \u003e irspec 'spec/requests/users_spec.rb'\n\nYou might notice that it runs suuuuper fast since irspec uses already loaded Rails process.\n\n\n== Contributing to Interactive RSpec\n\n* Fork, fix, then send me a pull request.\n\n\n== Copyright\n\nCopyright (c) 2011 Akira Matsuda. See MIT-LICENSE for further details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famatsuda%2Finteractive_rspec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famatsuda%2Finteractive_rspec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famatsuda%2Finteractive_rspec/lists"}