Sha256: 280c72a1ba587c4ce81d6398343d456dc587f0b0ba25c760ee650cef47788134
Contents?: true
Size: 1.73 KB
Versions: 1
Compression:
Stored size: 1.73 KB
Contents
# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig. # License: Apache License, Version 2.0 require File.dirname(__FILE__) + '/../spec_helper' module RTM class Engine describe self do describe "#identifier" do before(:all) do @connection = get_used_tm_sys @tested = false end it "should return :ontopia if ontopia is used" do if implementation_for_spec == :ontopia @connection.identifier.should == :ontopia @tested = true elsif implementation_for_spec == :tinytim @connection.identifier.should == :tinytim @tested = true elsif implementation_for_spec == :activerecord @connection.identifier.should == :activerecord @tested = true elsif implementation_for_spec == :tm2jdbc @connection.identifier.should == :tm2jdbc @tested = true elsif implementation_for_spec == :hatana @connection.identifier.should == :hatana @tested = true elsif implementation_for_spec == :sesametm @connection.identifier.should == :sesametm @tested = true elsif implementation_for_spec == :majortom @connection.identifier.should == :majortom @tested = true elsif implementation_for_spec == :majortom_db @connection.identifier.should == :majortom @tested = true elsif implementation_for_spec == :couchtm @connection.identifier.should == :couchtm @tested = true else # engine not found end @tested.should be_true end end end # of describe self end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rtm-0.3.1 | spec/rtm/engine_spec.rb |