search for: rspecer

Displaying 2 results from an estimated 2 matches for "rspecer".

Did you mean: rspencer
2007 Jul 24
2
Mocking Resolv::DNS?
Hello Rspecers, I have a rails project where I am calling Resolv::DNS.open and then using the block to check a domain name. The code snippet in question is: domain = "mytest.com" Resolv::DNS.open do |dns| @mx = dns.getresources(domain, Resolv::DNS::Resource::IN::MX) end I obviously wa...
2007 Aug 28
3
How do you keep mocks updated without pain?
...ot;correct doc" way mocking-stubbing (plus I should run integration test to be sure that everything really works together). Now, when I want to change something in model then basically I have to change mocks so many places, haven''t I? It really feels a little too messy for me as nuby rspecer. Or it''s just my worry and you have to be so good that you don''t have to change things too much after specing them? If so then I know that I should think much more when mocking(== designing) things. When I googled about this topic I have found similar worries out there and I got...