Sha256: dbe988ccbaa5e152f6b0f1cbfde715c21d33f1069617c22b2a81f5965c011c32
Contents?: true
Size: 598 Bytes
Versions: 1
Compression:
Stored size: 598 Bytes
Contents
require_relative '../spec_helper' module Kamerling describe Registrar do describe '#register' do fakes :addr, :client, :project, :repo it 'registers that the given client can do the given project' do repos = { Client => { client.uuid => client }, Project => { project.uuid => project }, Registration => repo } Registrar.new.register addr: addr, client_uuid: client.uuid, project_uuid: project.uuid, repos: repos repo.must_have_received :<<, [Registration.new(addr: addr, client: client, project: project, uuid: anything)] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kamerling-0.0.1 | spec/kamerling/registrar_spec.rb |