Sha256: 946ee8cee7a7ef11916769094868ab9caf476cc8848df41c5ca32ae9eed12c6a

Contents?: true

Size: 503 Bytes

Versions: 13

Compression:

Stored size: 503 Bytes

Contents

require 'spec_helper'
require 'database_cleaner/shared_strategy'
require 'database_cleaner/generic/base'

module ::DatabaseCleaner
  module Generic
    class ExampleStrategy
      include ::DatabaseCleaner::Generic::Base
    end

    describe ExampleStrategy do
      context "class methods" do
        subject { ExampleStrategy }
        its(:available_strategies) { should be_empty }
      end

      it_should_behave_like "a generic strategy"

      its(:db) { should eq :default }
    end
  end
end

Version data entries

13 entries across 8 versions & 3 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/database_cleaner-1.4.1/spec/database_cleaner/generic/base_spec.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/database_cleaner-1.4.1/spec/database_cleaner/generic/base_spec.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/database_cleaner-1.4.1/spec/database_cleaner/generic/base_spec.rb
database_cleaner-1.4.1 spec/database_cleaner/generic/base_spec.rb
database_cleaner-1.4.0 spec/database_cleaner/generic/base_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/database_cleaner-1.2.0/spec/database_cleaner/generic/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/generic/base_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/database_cleaner-1.2.0/spec/database_cleaner/generic/base_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/database_cleaner-1.2.0/spec/database_cleaner/generic/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/generic/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/generic/base_spec.rb
database_cleaner-1.3.0 spec/database_cleaner/generic/base_spec.rb
database_cleaner-1.2.0 spec/database_cleaner/generic/base_spec.rb