Re: [rspec-users] Rspec and EventMachine

2009-03-15 Thread Steven Baker
I am trying to create a app that makes use of EventMachine. As I recently fell in love with Rspec, I was trying to use it with our EM. However, I have no idea how to do this. Also, I want to remove network connections from the tests (as I might not be connected when running them), so I think I sho

Re: [rspec-users] Caboosers drop RSpec

2008-11-04 Thread Steven Baker
>> Never let the facts get it the way of a good headline? This is typical of rubyflow. I wouldn't worry about it too much. It was only a matter of time before the unfortunate political climate of the Rails community started bleeding into our party. Please don't let this get in the way of learni

Re: [rspec-users] Caboosers drop RSpec

2008-11-04 Thread Steven Baker
Subject: [rspec-users] Caboosers drop RSpec The subject is wrong too; Caboosers didn't drop RSpec. Two people from caboose dropped RSpec. Most of the caboosers I know are still using RSpec. Any responses to http://blog.caboo.se/articles/2008/11/4/we-ve-stopped-using-rspec ? How much of

Re: [rspec-users] Has anyone pulled from the repo recently, but not on/after 4/16?

2008-04-16 Thread Steven Baker
> I screwed up the repo on github and a bunch of commits are missing. > So I'm hoping that there are a couple people out there that have > pulled fairly recently (ideally on 4/15), but not today. If so, can > you please tar up your entire rspec-dev project and email it to me so > I can try to fix

Re: [rspec-users] spec'ing validates_uniqueness_of :whatever

2008-04-03 Thread Steven Baker
>> If you were to write an example that creates two models, and ensures >> that the duplicate errored appropriately, my "rule" is violated. >> Each >> of your examples is then specifying the behaviour of the >> validates_uniqueness_of method, which you didn't write. > > I don't really agree with

Re: [rspec-users] spec'ing validates_uniqueness_of :whatever

2008-04-03 Thread Steven Baker
>> > The test asserts that you call validates_uniqueness_of, but it doesn't > actually test your logic. > So it's useful to see if someone accidentally deletes your code, but > if you have > >validates_uniqueness_of :user, :scope => :project_id > > or something more complex, it won't test thi

Re: [rspec-users] guide to good mocking?

2008-01-10 Thread Steven Baker
> Hi all - does anyone know of a good blog post or wiki or something > with a good guide to mocking? I've got some degree of responsibility > for people who are creating mocks. I'm supposed to actually be telling > them the best way to do it. There's ots of good stuff in here: http://martinfowler