Sha256: d97d2893afe4ff9c0c63c39e6635633254fc20ce01a7cd747ca6c8918c3fb76b

Contents?: true

Size: 603 Bytes

Versions: 2

Compression:

Stored size: 603 Bytes

Contents

require File.join(File.dirname(__FILE__),'../../lib/ropenlayer.rb')

describe Ropenlayer do
  describe Ropenlayer::Openlayer do
    describe Ropenlayer::Openlayer::Map do
      it "should create a new instance given valid attributes" do
        map = Ropenlayer::Openlayer::Map.new('test')
        map.class.should ==  Ropenlayer::Openlayer::Map
      end
      
      it "should have default values then" do
        map = Ropenlayer::Openlayer::Map.new('test')
        map.js_id.should == 'olObject_test'
        map.div_id.should == 'test'
        
      
      end
      
    end
    
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ropenlayer-0.3.5 spec/ropenlayer/map_spec.rb
ropenlayer-0.3.4 spec/ropenlayer/map_spec.rb