spec/lib/fasterer/cli_spec.rb in fasterer-0.2.0 vs spec/lib/fasterer/cli_spec.rb in fasterer-0.2.1

- old
+ new

@@ -6,24 +6,24 @@ describe 'exit status should be' do context 'success' do it 'when no files exist' do `#{fasterer_bin}` - expect($?.exitstatus).to eq(0) + expect($CHILD_STATUS.exitstatus).to eq(0) end it 'when no files with offenses exist' do create_file('user.rb', '[].sample') `#{fasterer_bin}` - expect($?.exitstatus).to eq(0) + expect($CHILD_STATUS.exitstatus).to eq(0) end end context 'fail' do it 'when file with offenses exists' do create_file('user.rb', '[].shuffle.first') `#{fasterer_bin}` - expect($?.exitstatus).to eq(1) + expect($CHILD_STATUS.exitstatus).to eq(1) end end end def fasterer_bin