From 43ce4ed14e55037647ba4f4ea18bc3d70f6e1e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Bu=CC=88nemann?= Date: Sat, 31 Oct 2015 10:44:08 +0100 Subject: [PATCH] Remove bogus local_user spec The spec is only testing the dsl's set method and not the default of local_user, because the defaults are not loaded into the spec. --- spec/integration/dsl_spec.rb | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/spec/integration/dsl_spec.rb b/spec/integration/dsl_spec.rb index 92e12d01..bc57eb14 100644 --- a/spec/integration/dsl_spec.rb +++ b/spec/integration/dsl_spec.rb @@ -467,36 +467,6 @@ describe Capistrano::DSL do end - describe 'local_user' do - before do - dsl.set :local_user, -> { Etc.getlogin } - end - - describe 'fetching local_user' do - subject { dsl.local_user } - - context 'where a local_user is not set' do - before do - Etc.expects(:getlogin).returns('login') - end - - it 'returns the login name' do - expect(subject.to_s).to eq 'login' - end - end - - context 'where a local_user is set' do - before do - dsl.set(:local_user, -> { 'custom login' }) - end - - it 'returns the custom name' do - expect(subject.to_s).to eq 'custom login' - end - end - end - end - describe 'on()' do describe "when passed server objects" do