Sha256: dc674cfb132537daf1003e754f2287f8064f41f2131ff6e0d4d083e2b38dbfde
Contents?: true
Size: 613 Bytes
Versions: 7
Compression:
Stored size: 613 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Punchblock class Client describe ComponentRegistry do let(:uri) { 'abc123' } let(:component) { double 'Component', source_uri: uri } it 'should store components and allow lookup by ID' do subject << component expect(subject.find_by_uri(uri)).to be component end it 'should allow deletion of components' do subject << component expect(subject.find_by_uri(uri)).to be component subject.delete component expect(subject.find_by_uri(uri)).to be_nil end end end end
Version data entries
7 entries across 7 versions & 1 rubygems