Sha256: 3407a274dd4b9ac61760b68a7c59dcbab0cd6d62612c62561925dddc6be4fb47

Contents?: true

Size: 802 Bytes

Versions: 10

Compression:

Stored size: 802 Bytes

Contents

require 'spec_helper'

describe Arpa::Repositories::Profiles::Remover, type: :repository, slow: true do

  let(:created_profile) { create :repository_profile }

  before { created_profile }

  describe '#destroy' do
    let(:destroy_profile) { subject.destroy(created_profile) }

    it 'should destroy the role' do
      expect { destroy_profile }.to change(Arpa::Repositories::Profiles::RepositoryProfile, :count).by(-1)
    end

  end

  describe '#disable' do
    let(:disable_profile) { subject.disable(created_profile) }

    it 'should disable the role' do
      expect { disable_profile }.to change(Arpa::Repositories::Profiles::RepositoryProfile, :count).by(-1)
    end

    it 'role should be setted to removed: true' do
      expect(disable_profile.removed).to be_truthy
    end

  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
arpa-0.2.0 spec/lib/arpa/repositories/profiles/remover_spec.rb
arpa-0.1.0 spec/lib/arpa/repositories/profiles/remover_spec.rb
arpa-0.0.9 spec/lib/arpa/repositories/profiles/remover_spec.rb
arpa-0.0.8 spec/lib/ar/repositories/profiles/remover_spec.rb
arpa-0.0.7 spec/lib/ar/repositories/profiles/remover_spec.rb
arpa-0.0.6 spec/lib/ar/repositories/profiles/remover_spec.rb
arpa-0.0.5 spec/lib/ar/repositories/profiles/remover_spec.rb
arpa-0.0.4 spec/lib/ar/repositories/profiles/remover_spec.rb
arpa-0.0.3 spec/lib/ar/repositories/profiles/remover_spec.rb
arpa-0.0.2 spec/lib/ar/repositories/profiles/remover_spec.rb