| 123456789101112131415 |
- # frozen_string_literal: true
- require 'rails_helper'
- RSpec.describe 'Pokemon Creation', type: :system do
- before { visit('/pokemon/create') }
- it 'shows me pokemon' do
- fill_in 'nickname', with: 'Volcanion'
- fill_in 'pokedexNumber', with: 721
- click_button 'Submit'
- expect(page).to have_current_path('/pokemon')
- expect(page).to have_text('Volcanion')
- end
- end
|