Sha256: dbf9bcdc168a4ae1bd9fd95d47cfdd2d126b6681dd2d8ab04318f79e2c85684e

Contents?: true

Size: 786 Bytes

Versions: 27

Compression:

Stored size: 786 Bytes

Contents

require 'spec_helper'
require 'database_cleaner/sequel/base'
require 'database_cleaner/shared_strategy'
require 'sequel'

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

  module Sequel
    class ExampleStrategy
      include ::DatabaseCleaner::Sequel::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 desired db" do
        subject.db = :my_db
        subject.db.should eq :my_db
      end

      it "should default to :default" do
        pending "I figure out how to use Sequel and write some real tests for it..."
        subject.db.should eq :default
      end
    end
  end
end

Version data entries

27 entries across 22 versions & 4 rubygems

Version Path
database_cleaner-1.6.2 spec/database_cleaner/sequel/base_spec.rb
database_cleaner-1.6.1 spec/database_cleaner/sequel/base_spec.rb
database_cleaner-1.6.0 spec/database_cleaner/sequel/base_spec.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/spec/database_cleaner/sequel/base_spec.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/spec/database_cleaner/sequel/base_spec.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/spec/database_cleaner/sequel/base_spec.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/spec/database_cleaner/sequel/base_spec.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/spec/database_cleaner/sequel/base_spec.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/spec/database_cleaner/sequel/base_spec.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/spec/database_cleaner/sequel/base_spec.rb
database_cleaner-1.5.3 spec/database_cleaner/sequel/base_spec.rb
database_cleaner-1.5.2 spec/database_cleaner/sequel/base_spec.rb
database_cleaner-1.5.1 spec/database_cleaner/sequel/base_spec.rb
database_cleaner-1.5.0 spec/database_cleaner/sequel/base_spec.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/database_cleaner-1.4.1/spec/database_cleaner/sequel/base_spec.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/database_cleaner-1.4.1/spec/database_cleaner/sequel/base_spec.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/database_cleaner-1.4.1/spec/database_cleaner/sequel/base_spec.rb
database_cleaner-1.4.1 spec/database_cleaner/sequel/base_spec.rb
database_cleaner-1.4.0 spec/database_cleaner/sequel/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/sequel/base_spec.rb