Sha256: 6a7a6536c8663e7dd7835f77121e0288bc60e024079207e6d9832672d6a225a4

Contents?: true

Size: 1.37 KB

Versions: 1

Compression:

Stored size: 1.37 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 = RTM.connect(:implementation => implementation_for_spec)
          @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
          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.0 spec/rtm/engine_spec.rb