Sha256: c08ddca5751688d5d5a98b32b774f7833cd37d21fb1e2b260f51478251b02920

Contents?: true

Size: 736 Bytes

Versions: 4

Compression:

Stored size: 736 Bytes

Contents

require 'spec_helper'
require 'database_cleaner/data_mapper/base'
require 'database_cleaner/shared_strategy_spec'

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 == :my_db
      end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
surgical_strike-0.7.7 spec/database_cleaner/data_mapper/base_spec.rb
surgical_strike-0.7.6 spec/database_cleaner/data_mapper/base_spec.rb
surgical_strike-0.7.5 spec/database_cleaner/data_mapper/base_spec.rb
surgical_strike-0.7.4 spec/database_cleaner/data_mapper/base_spec.rb