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

fix failing spec following change from Roles to Servers

This commit is contained in:
seenmyfate 2013-04-28 19:06:19 +01:00
parent fe10a84418
commit 286f94c29b
2 changed files with 5 additions and 5 deletions

View file

@ -29,8 +29,8 @@ module Capistrano
end
end
def role(name, servers)
servers.add_role(name, servers)
def role(name, hosts)
servers.add_role(name, hosts)
end
def roles_for(names)

View file

@ -3,7 +3,7 @@ require 'spec_helper'
module Capistrano
describe Configuration do
let(:config) { Configuration.new }
let(:roles) { stub }
let(:servers) { stub }
describe '.env' do
it 'is a global accessor to a single instance' do
@ -17,8 +17,8 @@ module Capistrano
subject { config.role(:app, %w{server1 server2}) }
before do
Configuration::Roles.expects(:new).returns(roles)
roles.expects(:add_role).with(:app, %w{server1 server2})
Configuration::Servers.expects(:new).returns(servers)
servers.expects(:add_role).with(:app, %w{server1 server2})
end
it 'adds the role' do