Sha256: d8d1efcde68a94428ab7a640c8101b884fc6b512f765926aadf01f98c5757545

Contents?: true

Size: 701 Bytes

Versions: 27

Compression:

Stored size: 701 Bytes

Contents

require 'spec_helper'
require 'database_cleaner/data_mapper/base'
require 'database_cleaner/shared_strategy'

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

  module DataMapper
    class ExampleStrategy
      include ::DatabaseCleaner::DataMapper::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
        subject.db.should eq :default
      end
    end
  end
end

Version data entries

27 entries across 22 versions & 4 rubygems

Version Path
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/database_cleaner-1.2.0/spec/database_cleaner/data_mapper/base_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/database_cleaner-1.2.0/spec/database_cleaner/data_mapper/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/data_mapper/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/data_mapper/base_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/database_cleaner-1.2.0/spec/database_cleaner/data_mapper/base_spec.rb
database_cleaner-1.3.0 spec/database_cleaner/data_mapper/base_spec.rb
database_cleaner-1.2.0 spec/database_cleaner/data_mapper/base_spec.rb