spec/unit/tailor/cli_spec.rb in tailor-1.2.1 vs spec/unit/tailor/cli_spec.rb in tailor-1.3.0

- old
+ new

@@ -1,6 +1,6 @@ -require_relative '../../spec_helper' +require 'spec_helper' require 'tailor/cli' describe Tailor::CLI do let(:args) { [] } @@ -23,18 +23,18 @@ subject { Tailor::CLI.new(args) } describe '::run' do it "creates an instance of Tailor::CLI and calls that object's #execute!" do - cli = double "Tailor::CLI" + cli = double 'Tailor::CLI' cli.should_receive(:execute!) Tailor::CLI.should_receive(:new).and_return cli Tailor::CLI.run([]) end end describe '#initialize' do - let(:args) { ['last'] } + let(:args) { %w[last] } it 'uses Options to parse the args' do Tailor::Configuration.stub(:new).and_return config Tailor::Critic.stub(:new) Tailor::Reporter.stub(:new)