Sha256: b9a03e6e63a92a8f6e9830f947f629a08a42560670c06655e327d61394a4bee9

Contents?: true

Size: 791 Bytes

Versions: 17

Compression:

Stored size: 791 Bytes

Contents

require 'spec_helper'
require 'database_cleaner/sequel/base'
require 'database_cleaner/shared_strategy_spec'
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 == :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 == :default
      end
    end
  end
end

Version data entries

17 entries across 11 versions & 4 rubygems

Version Path
raffle_v1-0.0.5 lib/database_cleaner-0.7.2/spec/database_cleaner/sequel/base_spec.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.7.2/spec/database_cleaner/sequel/base_spec.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.7.2/spec/database_cleaner/sequel/base_spec.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.7.2/spec/database_cleaner/sequel/base_spec.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.7.2/spec/database_cleaner/sequel/base_spec.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.7.2/spec/database_cleaner/sequel/base_spec.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.7.2/spec/database_cleaner/sequel/base_spec.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.7.2/spec/database_cleaner/sequel/base_spec.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.7.2/spec/database_cleaner/sequel/base_spec.rb
rails-uploader-0.0.4 vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.8.0/spec/database_cleaner/sequel/base_spec.rb
rails-uploader-0.0.4 vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.7.2/spec/database_cleaner/sequel/base_spec.rb
database_cleaner-0.8.0 spec/database_cleaner/sequel/base_spec.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.7.2/spec/database_cleaner/sequel/base_spec.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.7.2/spec/database_cleaner/sequel/base_spec.rb
rails-uploader-0.0.1 vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.7.2/spec/database_cleaner/sequel/base_spec.rb
database_cleaner-0.7.2 spec/database_cleaner/sequel/base_spec.rb
database_cleaner-0.7.1 spec/database_cleaner/sequel/base_spec.rb