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