spec/helpers/connection_helper.rb in gooddata-0.6.7 vs spec/helpers/connection_helper.rb in gooddata-0.6.8

- old
+ new

@@ -14,9 +14,15 @@ # @param [String] password Optional password def self.create_default_connection(username = DEFAULT_USERNAME, password = DEFAULT_PASSWORD) GoodData::connect(username, password) end + def self.disconnect + conn = GoodData.connection.connection + GoodData.disconnect + puts conn.stats_table + end + # Creates connection using environment varibles GD_GEM_USER and GD_GEM_PASSWORD def self.create_private_connection username = ENV['GD_GEM_USER'] || DEFAULT_USERNAME password = ENV['GD_GEM_PASSWORD'] || DEFAULT_PASSWORD