incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject Fixed method rewriting in Ruby client
Date Thu, 08 Jul 2010 10:46:28 GMT
Hi,

There is a weird issue with Realms in Ruby client code, you can try it
using the Mock driver:

api.realms[0].name  => "Europe"
api.realms[1].name  => "Europe" / "United States" is expected value here

(api is instance of DeltaCloud::API)

So I replaced 'static method generation' with 'attr_accestor' and
then setting attribute value explicitly.

This works both in Rails and RSpec.

 -- Michal


Mime
View raw message