'#convert_isbn' do example '13ܻͷISBNΛ10ܻʹมͰ͖Δ' do expect(convert_isbn('9784774193977')).to eq '4774193976' end example 'νΣοΫσΟδοτ͕10ʹͳΔͱ͖XͰऴΘΔ' do expect(convert_isbn('9784774183619')).to eq '477418361X' end end end ࠷ޙͷ1ܻ͕νΣοΫσΟδοτ in 13ܻ out 10ܻ
:user, email: 'foo@example.com', name: 'ҏ౻३Ұ' } describe 'Ϣʔβʔͷݕࡧ' do example 'Eϝʔϧͷେจࣈɾখจࣈແࢹͯ͠ݕࡧ͢Δ' do visit users_path fill_in 'Eϝʔϧ', with: 'FOO@EXAMPLE.COM' click_button 'ݕࡧ͢Δ' expect(page).to have_content 'ҏ౻३Ұ' end end end ↑ मਖ਼લUser͕ݟ͔ͭΒͣɺ͜͜Ͱςετ͕ࣦഊ͢Δ খจࣈͰొ େจࣈͰݕࡧ
:user, email: 'foo@example.com', name: 'ҏ౻३Ұ' } describe 'Ϣʔβʔͷݕࡧ' do example 'Eϝʔϧͷେจࣈɾখจࣈແࢹͯ͠ݕࡧ͢Δ' do visit users_path fill_in 'Eϝʔϧ', with: 'FOO@EXAMPLE.COM' click_button 'ݕࡧ͢Δ' expect(page).to have_content 'ҏ౻३Ұ' end end end খจࣈͰొ େจࣈͰݕࡧ ↑ ͪΌΜͱमਖ਼Ͱ͖ͨΒςετ͕ύε͢Δ