spec/lib/arpa/repositories/resources/remover_spec.rb in arpa-0.2.0 vs spec/lib/arpa/repositories/resources/remover_spec.rb in arpa-0.3.0

- old
+ new

@@ -1,14 +1,12 @@ require 'spec_helper' describe Arpa::Repositories::Resources::Remover, type: :repository, slow: true do - let(:resource_001) { create :repository_resource, :user } let(:destroy_resource) { subject.destroy(resource_001) } describe '#destroy' do - context 'when resource has no actions associate' do let(:actions) { [] } it 'should destroy the resource' do expect { destroy_resource }.to change(Arpa::Repositories::Resources::RepositoryResource, :count).by(0) @@ -29,10 +27,8 @@ end it 'should destroy all actions associate with resource' do expect { destroy_resource }.to change(Arpa::Repositories::Actions::RepositoryAction, :count).by(-2) end - end - end end