Sha256: 828f6e06d93d94a557a8a5c1df268a679f7b52ed08e8c17ff0363ace558993ba

Contents?: true

Size: 916 Bytes

Versions: 5

Compression:

Stored size: 916 Bytes

Contents

require 'spec_helper'
require 'database_cleaner/neo4j/base'
require 'database_cleaner/shared_strategy'

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

  module Neo4j
    class ExampleStrategy
      include ::DatabaseCleaner::Neo4j::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 describe db" do
        db_conf = {:connection => {:type => :server_db, :path => 'http://localhost:7474'}}
        subject.db = db_conf
        subject.db.should eq db_conf
      end

      it "should default to nil" do
        subject.db.should be_nil
      end

      it "should return default configuration" do
        subject.database.should eq(:type => :server_db, :path => 'http://localhost:7475/')
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/database_cleaner-1.4.1/spec/database_cleaner/neo4j/base_spec.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/database_cleaner-1.4.1/spec/database_cleaner/neo4j/base_spec.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/database_cleaner-1.4.1/spec/database_cleaner/neo4j/base_spec.rb
database_cleaner-1.4.1 spec/database_cleaner/neo4j/base_spec.rb
database_cleaner-1.4.0 spec/database_cleaner/neo4j/base_spec.rb