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