Sha256: b9edfa170cd4802464e9b6d1c4c50a180848245a75d19627a5c779fb469d5d85
Contents?: true
Size: 630 Bytes
Versions: 1
Compression:
Stored size: 630 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe 'chruby', type: :rake do before do load_default_config end describe 'chruby' do let(:task_name) { 'chruby' } context 'without an argument' do it 'exits with an error message' do expect do invoke_all end.to raise_error(SystemExit).and output(output_file('chruby_without_env')).to_stdout end end context 'with an argument' do it 'sets ruby version' do expect do invoke_all('123') end.to output(output_file('chruby_with_env')).to_stdout end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mina-1.2.5 | spec/tasks/chruby_spec.rb |