Sha256: c827ac96a158ea94978cc7cd2f75c7c71c3ddfe9c21e8824d940fae7fec85b50
Contents?: true
Size: 525 Bytes
Versions: 4
Compression:
Stored size: 525 Bytes
Contents
require 'spec_helper' module Darkholme describe Component do subject { MockComponent.new } it "returns a unique bit for Components" do first_bit = Component.bit_for(MockComponent) second_bit = Component.bit_for(Component) expect(first_bit).not_to eq(second_bit) end it "gets a bit from an instance" do expect(Component).to receive(:bit_for).with(MockComponent) .and_return(:bit) expect(subject.bit).to eq(:bit) end end end
Version data entries
4 entries across 4 versions & 1 rubygems