Skip to content

Commit

Permalink
fixes cops
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstrickland committed Jun 2, 2018
1 parent 7c4972b commit 179aaab
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions spec/lib/tmuxinator/cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
describe Tmuxinator::Cli do
shared_context :local_project_setup do
let(:local_project_config) { ".tmuxinator.yml" }
let(:content) { File.read(File.expand_path(File.join(File.dirname(__FILE__), "../../fixtures/sample.yml"))) }
let(:content_fixture) { "../../fixtures/sample.yml" }
let(:content_relpath) { File.join(File.dirname(__FILE__), content_fixture) }
let(:content_path) { File.expand_path(content_relpath) }
let(:content) { File.read(content_path) }
let(:working_dir) { FileUtils.pwd }
let(:local_project_path) { File.expand_path(File.join(working_dir, local_project_config)) }
let(:local_project_relpath) { File.join(working_dir, local_project_config) }
let(:local_project_path) { File.expand_path(local_project_relpath) }

before do
File.new(local_project_path, "w").tap do |f|
Expand Down Expand Up @@ -60,7 +64,6 @@
end
end


describe "::bootstrap" do
subject { cli.bootstrap(*args) }
let(:args) { [] }
Expand All @@ -82,7 +85,8 @@

context "a tmuxinator project name" do
before do
expect(Tmuxinator::Config).to receive(:exists?).with(name: arg1) { true }
expect(Tmuxinator::Config).to \
receive(:exists?).with(name: arg1) { true }
end

it "should call #start" do
Expand Down Expand Up @@ -115,7 +119,8 @@

context "something else" do
before do
expect(Tmuxinator::Config).to receive(:exists?).with(name: arg1) { false }
expect(Tmuxinator::Config).to \
receive(:exists?).with(name: arg1) { false }
end

it "should call ::start" do
Expand Down

0 comments on commit 179aaab

Please sign in to comment.