spec/dicer/contextable_spec.rb in dicer-0.1.0 vs spec/dicer/contextable_spec.rb in dicer-0.2.0
- old
+ new
@@ -17,17 +17,17 @@
end
end
end
end
- describe '#as' do
- subject { entity.as(Cleaner) }
+ describe '#behaves_like' do
+ subject { entity.behaves_like(Cleaner) }
it { should respond_to(:clean) }
context 'with block' do
it do
- entity.as(Cleaner) do |cleaner|
+ entity.behaves_like(Cleaner) do |cleaner|
cleaner.should respond_to(:clean)
end
end
end
end