Sha256: 7282429243ba36a3c319853c4f0b2f94360991850ad3dde2260fa8351b32bb06

Contents?: true

Size: 958 Bytes

Versions: 7

Compression:

Stored size: 958 Bytes

Contents

require 'test_helper'

module Vedeu

  module Repositories

    describe Cache do

      let(:described) { Vedeu::Repositories::Cache }
      let(:instance)  { described.new }

      describe '#initialize' do
        it { instance.must_be_instance_of(described) }
      end

      describe '#add' do
        let(:resource) {}
        let(:options)  { {} }

        subject { instance.add(resource, options) }

        it { instance.must_respond_to(:add) }
      end

      describe '#clear' do
        subject { instance.clear }

        it { instance.must_respond_to(:clear) }
      end

      describe '#read' do
        let(:resource) {}

        subject { instance.read(resource) }

        it { instance.must_respond_to(:read) }
      end

      describe '#remove' do
        let(:resource) {}

        subject { instance.remove(resource) }

        it { instance.must_respond_to(:remove) }
      end

    end # Cache

  end # Repositories

end # Vedeu

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vedeu-0.8.32 test/lib/vedeu/repositories/cache_test.rb
vedeu-0.8.31 test/lib/vedeu/repositories/cache_test.rb
vedeu-0.8.30 test/lib/vedeu/repositories/cache_test.rb
vedeu-0.8.29 test/lib/vedeu/repositories/cache_test.rb
vedeu-0.8.28 test/lib/vedeu/repositories/cache_test.rb
vedeu-0.8.27 test/lib/vedeu/repositories/cache_test.rb
vedeu-0.8.26 test/lib/vedeu/repositories/cache_test.rb