Sha256: 459cb2c9ea3041e8b01f6377b46be0cc80ed6680cc20f88d3babe55452dd6e6a
Contents?: true
Size: 687 Bytes
Versions: 1
Compression:
Stored size: 687 Bytes
Contents
require 'ego/capability' RSpec.describe Ego::Capability do let(:desc) { 'my desc' } let(:plugin) { double('Ego::Plugin') } describe '#initialize' do it 'sets its description' do allow(Ego::Plugin).to receive(:context) { plugin } subject = described_class.new(desc) expect(subject.desc).to eq(desc) end it 'sets the plug-in context' do allow(Ego::Plugin).to receive(:context) { plugin } subject = described_class.new(desc) expect(subject.plugin).to be plugin end end describe '#to_s' do it 'returns the description' do subject = described_class.new(desc) expect(subject.to_s).to eq(desc) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ego-0.5.0 | spec/ego/capability_spec.rb |