GitHub PushEvent at 2014-07-15 10:59:26
Repository: vcloud-tools-tester
Actor: ajlanghorn
Payload: {"shas":[["fc8a412f9c88df17e238d2e6946559f9687c4a1c","4c1d1a8c1ec1a8618029c68aeda3f77fda08efeb@digital.cabinet-office.gov.uk","[#74863398] Extract fixture parameters regardless of class\n\nThe `vcloud-tools-tester` Gem create two test networks - one routed, one\nisolated. A pre-existing network is of the `Fog::Compute::VcloudDirector::Network`\nclass, whereas a network that is created by this Gem is of the\n`Vcloud::Core::OrgVdcNetwork` class. Both classes will return the ID and the name\n- which are the values required for the fixture parameter extraction.\n\nAny time a new network is created by this Gem, the tests fail and complain\nthat no fixture parameters were received. We can't get the fixture\nparameters because we only extract them if they are of one particular class,\nnot of either.\n\nRuby allows for case statements to take multiple values in the `when`\nstatement. If any of these values is true, the script continues. If not, it\nerrors. Rather than using `or`, the syntax makes use of a comma to specify\nmultiple values of equal weighting in the `or`. `,` is the equivalent of `||`\nin an `if` statement.\n\nThe net result of this commit is that we are placing `or` logic in to the\ncase statement to extract the fixture parameters when the class is either of\nthe two values specified.","Andrew Langhorn",true]],"size":1,"ref":"refs/heads/74863398","head":"fc8a412f9c88df17e238d2e6946559f9687c4a1c"}