spec/lib/database_server_spec.rb in switchman-1.2.3 vs spec/lib/database_server_spec.rb in switchman-1.2.4

- old
+ new

@@ -29,9 +29,15 @@ it "should depend on the database environment" do db = DatabaseServer.new(config: { adapter: 'postgresql', username: '%{schema_search_path}', deploy: { username: 'deploy' }}) db.shareable?.should be_false ::Shackles.activate(:deploy) { db.shareable? }.should be_true end + + it "should handle string keys" do + db = DatabaseServer.new(config: { adapter: 'postgresql', username: '%{schema_search_path}', deploy: { 'username' => 'deploy' }}) + db.shareable?.should be_false + ::Shackles.activate(:deploy) { db.shareable? }.should be_true + end end describe "#create_new_shard" do include RSpecHelper