Sha256: d0842b5768da697accb3a326ee4ded04c4aa66f990e0b61014876240ad5cb5c6

Contents?: true

Size: 355 Bytes

Versions: 4

Compression:

Stored size: 355 Bytes

Contents

require 'spec_helper'

describe Railblazer::ConfigGenerator do
  describe "#to_s" do
    it "should generate a valid configuration for mysql2" do
      desired = <<EOS
test:
  adapter: mysql2
  database: fooapp_test
  username: root
  host: 127.0.0.1
EOS
      Railblazer::ConfigGenerator.new('mysql2', 'fooapp').to_s.must_equal desired
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
railblazer-0.0.4 spec/railblazer/config_generator_spec.rb
railblazer-0.0.3 spec/railblazer/config_generator_spec.rb
railblazer-0.0.2 spec/railblazer/config_generator_spec.rb
railblazer-0.0.1 spec/railblazer/config_generator_spec.rb