Sha256: 5db4e7880fa1b4ac12cdce25db903c9f896d4857a75680931a72bf706a2cc952
Contents?: true
Size: 1.12 KB
Versions: 3
Compression:
Stored size: 1.12 KB
Contents
require "spec_helper" describe "Connection" do describe "create" do before(:each) do @olap = Mondrian::OLAP::Connection.new(CONNECTION_PARAMS_WITH_CATALOG) end it "should not be connected before connection" do @olap.should_not be_connected end it "should be successful" do @olap.connect.should be_true end end describe "create with catalog content" do before(:all) do @schema_xml = File.read(CATALOG_FILE) end it "should be successful" do @olap = Mondrian::OLAP::Connection.new(CONNECTION_PARAMS.merge( :catalog_content => @schema_xml )) @olap.connect.should be_true end end describe "properties" do before(:all) do @olap = Mondrian::OLAP::Connection.create(CONNECTION_PARAMS_WITH_CATALOG) end it "should be connected" do @olap.should be_connected end end describe "close" do before(:all) do @olap = Mondrian::OLAP::Connection.create(CONNECTION_PARAMS_WITH_CATALOG) end it "should not be connected after close" do @olap.close @olap.should_not be_connected end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mondrian-olap-0.3.0 | spec/connection_spec.rb |
mondrian-olap-0.2.0 | spec/connection_spec.rb |
mondrian-olap-0.1.0 | spec/connection_spec.rb |