Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Scaramouche
Mar 26, 2001

SPACE FACE! SPACE FACE!

This might be a dumb question, but I've a client who has a specced out project they've approached us with. It's bizarrely specific in some cases (e.g. 'use Ruby on Rails on Cake PHP on Gentoo Linux') and opaque in others ('database: don't use Oracle') and contradictory in yet others ('check for aspx errors' on php?). One of their criteria calls for an audit phase that involves unit testing; the impression I'd gotten is that the dynamism of Ruby pretty well means you can't easily do this. Am I wrong?

Adbot
ADBOT LOVES YOU

Scaramouche
Mar 26, 2001

SPACE FACE! SPACE FACE!

Doc Hawkins posted:

I think you are. Unit testing seems relatively popular in Ruby development. Ruby has two unit testing frameworks built into the standard library (well, one and a half), and there's a handful of others that people use. All you have to do as far as dynamism is test behaviors rather than identities: expect a returned object to respond to some methods, rather than have the class MethodResponder or whatever.

Also, tell me isn't a real example:

Thanks for the info. My testing background thus far has been as you've said, more about the Class style response. This makes sense for Ruby, though it feels less exhaustive.

Also that example is as real as the day is long. I don't 'own' this client, they approached us and we're still considering taking them on. I'm not quite sure what direction this will take but will after the initial proto-meeting tomorrow.

Scaramouche
Mar 26, 2001

SPACE FACE! SPACE FACE!

Physical posted:

Why is Vi worth using?

Because it makes emacs users hate you.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply