Untitled
unknown
plain_text
4 years ago
596 B
8
Indexable
require 'spec_helper'
RSpec.describe 'bin/brain-games', type: :aruba do
before(:each) do
file_path = File.expand_path('../.venv/bin/brain-games', __dir__)
expect(File).to exist(file_path)
run_command file_path
end
before(:each) do
expect(last_command_started).not_to be_stopped
type('Tirion')
end
it 'works' do
expect(last_command_started).to be_stopped
expect(last_command_started).to be_successfully_executed
expect(last_command_started).to have_output /May I have your name?/
expect(last_command_started).to have_output /Hello, Tirion/
end
endEditor is loading...