Sha256: 485e7272ab85bd945adcc51ed7a095cf86e39a31f3dbd07f6305cc3fd641c420

Contents?: true

Size: 536 Bytes

Versions: 12

Compression:

Stored size: 536 Bytes

Contents

require "spec_helper"

describe Fx::Configuration do
  it "defaults the database adapter to postgres" do
    expect(Fx.configuration.database).to be_a Fx::Adapters::Postgres
    expect(Fx.database).to be_a Fx::Adapters::Postgres
  end

  it "allows the database adapter to be set" do
    adapter = double("Fx Adapter")

    Fx.configure do |config|
      config.database = adapter
    end

    expect(Fx.configuration.database).to eq adapter
    expect(Fx.database).to eq adapter

    Fx.configuration = Fx::Configuration.new
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
fx-0.8.0 spec/fx/configuration_spec.rb
fx-0.7.0 spec/fx/configuration_spec.rb
fx-jets-0.6.3s spec/fx/configuration_spec.rb
fx-0.6.2 spec/fx/configuration_spec.rb
fx-0.6.1 spec/fx/configuration_spec.rb
fx-0.6.0 spec/fx/configuration_spec.rb
fx-0.5.0 spec/fx/configuration_spec.rb
fx-0.4.0 spec/fx/configuration_spec.rb
fx-0.3.1 spec/fx/configuration_spec.rb
fx-0.3.0 spec/fx/configuration_spec.rb
fx-0.2.0 spec/fx/configuration_spec.rb
fx-0.1.0 spec/fx/configuration_spec.rb