Sha256: 429e575e74d2705f17789b816126f3e6395ed5eae7d08d8ecf7521bfed634427

Contents?: true

Size: 739 Bytes

Versions: 15

Compression:

Stored size: 739 Bytes

Contents

require 'spec_helper'
require 'database_cleaner/redis/base'
require 'database_cleaner/shared_strategy'

module DatabaseCleaner
  describe Redis do
    it { should respond_to(:available_strategies) }
  end

  module Redis
    class ExampleStrategy
      include ::DatabaseCleaner::Redis::Base
    end

    describe ExampleStrategy do

      it_should_behave_like "a generic strategy"
      it { should respond_to(:db) }
      it { should respond_to(:db=) }

      it "should store my describe db" do
        url = 'redis://localhost:6379/2'
        subject.db = 'redis://localhost:6379/2'
        subject.db.should eq url
      end

      it "should default to :default" do
        subject.db.should eq :default
      end
    end
  end
end

Version data entries

15 entries across 10 versions & 3 rubygems

Version Path
database_cleaner-1.5.1 spec/database_cleaner/redis/base_spec.rb
database_cleaner-1.5.0 spec/database_cleaner/redis/base_spec.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/database_cleaner-1.4.1/spec/database_cleaner/redis/base_spec.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/database_cleaner-1.4.1/spec/database_cleaner/redis/base_spec.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/database_cleaner-1.4.1/spec/database_cleaner/redis/base_spec.rb
database_cleaner-1.4.1 spec/database_cleaner/redis/base_spec.rb
database_cleaner-1.4.0 spec/database_cleaner/redis/base_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/database_cleaner-1.2.0/spec/database_cleaner/redis/base_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/database_cleaner-1.2.0/spec/database_cleaner/redis/base_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/database_cleaner-1.2.0/spec/database_cleaner/redis/base_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/database_cleaner-1.2.0/spec/database_cleaner/redis/base_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/database_cleaner-1.2.0/spec/database_cleaner/redis/base_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/database_cleaner-1.2.0/spec/database_cleaner/redis/base_spec.rb
database_cleaner-1.3.0 spec/database_cleaner/redis/base_spec.rb
database_cleaner-1.2.0 spec/database_cleaner/redis/base_spec.rb