Sha256: d0e4d26c94bd7f35fc5b88f3fc3e9c9d6893839ceb4984cd85dfae8f58e9a6b3

Contents?: true

Size: 361 Bytes

Versions: 14

Compression:

Stored size: 361 Bytes

Contents

require 'spec_helper'

describe "Connection" do

  it "is connected" do
    expect(ActiveRecord::Base).to be_connected
  end

  it "re-opens without failure" do
    expect { ActiveRecord::Base.establish_connection :schema_dev }.to_not raise_error
    expect(ActiveRecord::Base.connection).to_not be_nil
    expect(ActiveRecord::Base).to be_connected
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
schema_monkey-3.0.1 spec/connection_spec.rb
schema_monkey-3.0.0 spec/connection_spec.rb
schema_monkey-2.1.6 spec/connection_spec.rb
schema_monkey-2.1.5 spec/connection_spec.rb
schema_monkey-2.1.4 spec/connection_spec.rb
schema_monkey-2.1.3 spec/connection_spec.rb
schema_monkey-2.1.2 spec/connection_spec.rb
schema_monkey-2.1.1 spec/connection_spec.rb
schema_monkey-2.1.0 spec/connection_spec.rb
schema_monkey-2.0.1 spec/connection_spec.rb
schema_monkey-2.0.0 spec/connection_spec.rb
schema_monkey-1.0.1 spec/connection_spec.rb
schema_monkey-1.0.0 spec/connection_spec.rb
schema_monkey-0.4.1 spec/connection_spec.rb