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

View differences:

src/oca/ruby/test/Cluster_spec.rb
54 54
            @cluster['ID'].should eql('5')
55 55
            @cluster['NAME'].should eql('Production')
56 56
        end
57

  
58
        it "should get a hash representation of the CLUSTER" do
59
            cluster_hash = @cluster.to_hash
60
            cluster_hash['CLUSTER']['ID'].should eql('5')
61
            cluster_hash['CLUSTER']['NAME'].should eql('Production')
62
        end
63 57
    end
64 58

  
65 59
    describe "Cluster using REXML" do
......
111 105
            @cluster['ID'].should eql('5')
112 106
            @cluster['NAME'].should eql('Production')
113 107
        end
114

  
115
        it "should get a hash representation of the CLUSTER" do
116
            cluster_hash = @cluster.to_hash
117
            cluster_hash['CLUSTER']['ID'].should eql('5')
118
            cluster_hash['CLUSTER']['NAME'].should eql('Production')
119
        end
120 108
    end
121 109

  
122 110

  

Also available in: Unified diff