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:
parent
fe10a84418
commit
286f94c29b
2 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue