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

View differences:

src/oca/ruby/test/User_spec.rb
44 44
            @user['PASSWORD'].should eql('d22a12348334v33f71ba846572d25250d40701e72')
45 45
            @user['ENABLED'].should eql('False')
46 46
        end
47

  
48
        it "should get a hash representation of the USER" do
49
            user_hash = @user.to_hash
50
            user_hash['USER']['ID'].should eql('3')
51
            user_hash['USER']['NAME'].should eql('dan')
52
            user_hash['USER']['PASSWORD'].should eql('d22a12348334v33f71ba846572d25250d40701e72')
53
            user_hash['USER']['ENABLED'].should eql('False')
54
        end
55 47
    end
56 48

  
57 49
    describe "User using REXML" do
......
93 85
            @user['PASSWORD'].should eql('d22a12348334v33f71ba846572d25250d40701e72')
94 86
            @user['ENABLED'].should eql('False')
95 87
        end
96

  
97
        it "should get a hash representation of the USER" do
98
            user_hash = @user.to_hash
99
            user_hash['USER']['ID'].should eql('3')
100
            user_hash['USER']['NAME'].should eql('dan')
101
            user_hash['USER']['PASSWORD'].should eql('d22a12348334v33f71ba846572d25250d40701e72')
102
            user_hash['USER']['ENABLED'].should eql('False')
103
        end
104 88
    end
105 89

  
106 90

  

Also available in: Unified diff