spec/dicer/context/description_spec.rb in dicer-0.2.0 vs spec/dicer/context/description_spec.rb in dicer-0.3.0
- old
+ new
@@ -3,12 +3,12 @@
describe Dicer::Context::Description do
subject(:description) do
Dicer::Context::Description.new(Entity) do
it_behaves_like Cleaner
- role :cleaner do
- it_behaves_like Cleaner
+ role :other do
+ it_behaves_like OtherBehavior
end
end
end
describe '#described_class' do
@@ -26,13 +26,13 @@
subject { description.behaviors.default }
it { should include(Cleaner) }
end
- describe '[:cleaner]' do
- subject { description.behaviors[:cleaner] }
+ describe '[:other]' do
+ subject { description.behaviors[:other] }
- it { should include(Cleaner) }
+ it { should include(OtherBehavior) }
end
end
describe '#delegator' do
subject { description.delegator }