1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

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.
This commit is contained in:
Felix Bünemann 2015-10-31 10:44:08 +01:00
parent fabb37fb75
commit 43ce4ed14e

View file

@ -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