Make Remote#hostname attribute read-only

This commit is contained in:
Thibault Jouan committed 2014-01-20 01:47:19 +00:00
1 parent b1e182cc93
commit 4603ce777f
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -5,8 +5,8 @@ module Producer::Core
let(:hostname) { 'some_host.example' }
subject(:remote) { Remote.new(hostname) }
describe '#hostname' do
it 'returns the assignated hostname' do
describe '#initialize' do
it 'assigns the given hostname' do
expect(remote.hostname).to eq hostname
end
end