spec/acceptance/cli/help_spec.rb in appraisal-2.5.0 vs spec/acceptance/cli/help_spec.rb in appraisal-3.0.0.rc1

- old
+ new

@@ -1,24 +1,26 @@ -require 'spec_helper' +# frozen_string_literal: true -describe 'CLI', 'appraisal help' do - it 'prints usage along with commands, and list of appraisals' do - build_appraisal_file <<-Appraisal +require "spec_helper" + +RSpec.describe "CLI", "appraisal help" do + it "prints usage along with commands, and list of appraisals" do + build_appraisal_file <<-APPRAISAL appraise '1.0.0' do gem 'dummy', '1.0.0' end - Appraisal + APPRAISAL - output = run 'appraisal help' + output = run "appraisal help" - expect(output).to include 'Usage:' - expect(output).to include 'appraisal [APPRAISAL_NAME] EXTERNAL_COMMAND' - expect(output).to include '1.0.0' + expect(output).to include "Usage:" + expect(output).to include "appraisal [APPRAISAL_NAME] EXTERNAL_COMMAND" + expect(output).to include "1.0.0" end - it 'prints out usage even Appraisals file does not exist' do - output = run 'appraisal help' + it "prints out usage even Appraisals file does not exist" do + output = run "appraisal help" - expect(output).to include 'Usage:' - expect(output).not_to include 'Unable to locate' + expect(output).to include "Usage:" + expect(output).not_to include "Unable to locate" end end