• Custom User Avatar

    Exactly

  • Custom User Avatar

    And reverse logic confirms when I checked the attribute against the instance variable in my sample tests:

    dog = GenericEntity.new(:barks=>"obnoxiously", :bites=>"mildly", :color=>"black")
    
    Test.assert_equals(dog.color, "black")
    Test.assert_equals(dog.bites, "mildly")
    Test.assert_equals(dog.barks, "obnoxiously")
    Test.assert_equals(dog.barks, @barks)
    
    
    
    
    Test Passed: Value == "black"
    Test Passed: Value == "mildly"
    Test Passed: Value == "obnoxiously"
    Expected: nil, instead got: "obnoxiously"
    
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Any resolution? Yeah when I write my own sample test with same params: dog = GenericEntity.new(:barks=>"obnoxiously", :bites=>"mildly", :color=>"black")