Revision c6c217d4 src/oca/ruby/test/ClusterPool_spec.rb

View differences:

src/oca/ruby/test/ClusterPool_spec.rb
30 30
                end
31 31
            }
32 32
        end
33
        
34
        it "should get a hash representation of the USER_POOL" do
35
            cluster_hash = @cluster_pool.to_hash
36
            cluster_hash['CLUSTER_POOL']['CLUSTER'][0]['ID'].should eql('0')
37
            cluster_hash['CLUSTER_POOL']['CLUSTER'][0]['NAME'].should eql('default')
38
            cluster_hash['CLUSTER_POOL']['CLUSTER'][1]['ID'].should eql('1')
39
            cluster_hash['CLUSTER_POOL']['CLUSTER'][1]['NAME'].should eql('Red')
40
            cluster_hash['CLUSTER_POOL']['CLUSTER'][2]['ID'].should eql('2')
41
            cluster_hash['CLUSTER_POOL']['CLUSTER'][2]['NAME'].should eql('Black')
42
        end
43 33
    end
44 34
    
45 35
    describe "Cluster using REXML" do
......
67 57
                end
68 58
            }
69 59
        end
70
        
71
        it "should get a hash representation of the CLUSTER_POOL" do
72
            cluster_hash = @cluster_pool.to_hash
73
            cluster_hash['CLUSTER_POOL']['CLUSTER'][0]['ID'].should eql('0')
74
            cluster_hash['CLUSTER_POOL']['CLUSTER'][0]['NAME'].should eql('default')
75
            cluster_hash['CLUSTER_POOL']['CLUSTER'][1]['ID'].should eql('1')
76
            cluster_hash['CLUSTER_POOL']['CLUSTER'][1]['NAME'].should eql('Red')
77
            cluster_hash['CLUSTER_POOL']['CLUSTER'][2]['ID'].should eql('2')
78
            cluster_hash['CLUSTER_POOL']['CLUSTER'][2]['NAME'].should eql('Black')
79
        end
80 60
    end
81 61
end

Also available in: Unified diff