1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2127],{22980:(e,n,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/abq/test-frameworks/rspec",function(){return s(81366)}])},81366:(e,n,s)=>{"use strict";s.r(n),s.d(n,{__N_SSG:()=>c,default:()=>o});var r=s(37876),i=s(91668);function l(e){let n={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",ul:"ul",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"abq-with-r-spec",children:"ABQ with RSpec"}),"\n",(0,r.jsxs)(n.p,{children:["You'll need the ",(0,r.jsx)(n.a,{href:"https://github.com/rwx-research/rspec-abq",children:(0,r.jsx)(n.code,{children:"rspec-abq"})})," gem to run your RSpec test suite with ABQ.\nAdd ",(0,r.jsx)(n.code,{children:"rspec-abq"})," to your ",(0,r.jsx)(n.code,{children:"Gemfile"}),". Commonly, it's added under a ",(0,r.jsx)(n.code,{children:"test"})," group."]}),"\n",(0,r.jsx)(n.pre,{language:"ruby",code:'group :test do\n gem "rspec-abq"\nend\n',children:(0,r.jsx)(n.code,{className:"language-ruby",children:'<span><span style="color: var(--shiki-color-text)">group :test </span><span style="color: var(--shiki-token-keyword)">do</span></span>\n<span><span style="color: var(--shiki-color-text)"> gem </span><span style="color: var(--shiki-token-string-expression)">"rspec-abq"</span></span>\n<span><span style="color: var(--shiki-token-keyword)">end</span></span>\n<span></span>'})}),"\n",(0,r.jsxs)(n.p,{children:["Run ",(0,r.jsx)(n.code,{children:"bundle install"})," after updating your ",(0,r.jsx)(n.code,{children:"Gemfile"}),"."]}),"\n",(0,r.jsxs)(n.p,{children:["Most likely, your project will be configured to automatically require all of the gems listed in your ",(0,r.jsx)(n.code,{children:"Gemfile"}),".\nHowever, if your project isn't configured that way, you'll need to add ",(0,r.jsx)(n.code,{children:"require 'rspec/abq'"})," at the top\nof your ",(0,r.jsx)(n.code,{children:"spec_helper.rb"})," file."]}),"\n",(0,r.jsx)(n.h2,{id:"compatibility",children:"Compatibility"}),"\n",(0,r.jsx)(n.p,{children:"This gem is actively tested against"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"Ruby 2.7-3.1"}),"\n",(0,r.jsx)(n.li,{children:"RSpec 3.5-3.12"}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"as well as a handful of RSpec plugins:"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"rspec-retry"})," 0.6.2"]}),"\n",(0,r.jsx)(n.li,{children:"capybara 3.36.0"}),"\n",(0,r.jsx)(n.li,{children:"selenium-webdriver 4.1.0"}),"\n",(0,r.jsx)(n.li,{children:"capybara-inline-screenshot 2.2.1"}),"\n"]})]})}var c=!0;function o(e={}){let{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=22980)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.