Sha256: be8fc6ce5884edcf1f9c74b87185e2e1a3df766deabd448113278ed1a61da605

Contents?: true

Size: 536 Bytes

Versions: 12

Compression:

Stored size: 536 Bytes

Contents

# frozen_string_literal: true
shared_examples 'a persistence strategy' do
  shared_context 'with changes' do
    before do
      subject.source << 
        RDF::Statement.new(RDF::Node.new, RDF::Vocab::DC.title, 'moomin')
    end
  end

  describe '#persist!' do
    it 'evaluates true on success' do
      expect(subject.persist!).to be_truthy
    end

    context 'with changes' do
      include_context 'with changes'

      it 'evaluates true on success' do
        expect(subject.persist!).to be_truthy
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
active-triples-1.2.0 spec/support/shared_examples/persistence_strategy.rb
active-triples-1.1.1 spec/support/shared_examples/persistence_strategy.rb
active-triples-1.1.0 spec/support/shared_examples/persistence_strategy.rb
active-triples-1.0.0 spec/support/shared_examples/persistence_strategy.rb
active-triples-1.0.0.rc1 spec/support/shared_examples/persistence_strategy.rb
active-triples-0.11.0 spec/support/shared_examples/persistence_strategy.rb
active-triples-0.10.2 spec/support/shared_examples/persistence_strategy.rb
active-triples-0.10.1 spec/support/shared_examples/persistence_strategy.rb
active-triples-0.10.0 spec/support/shared_examples/persistence_strategy.rb
active-triples-0.9.0 spec/support/shared_examples/persistence_strategy.rb
active-triples-0.8.3 spec/support/shared_examples/persistence_strategy.rb
active-triples-0.8.2 spec/support/shared_examples/persistence_strategy.rb