[rspec-users] Do you still Write Tests First on code that is churning hard?

2010-02-19 Thread Erik Pukinskis
Hello Specmeisters! I have a bit of a philosophical question for the TDD witches and wizards out there. I'm working on some code that is really churning... It's doing complicated calculations, but the actual desired results are a moving target. The acceptable values, and even the structure of the

[rspec-users] How to write advanced matchers

2008-11-18 Thread Erik Pukinskis
ails.snowedin.net/?p=33) and failed. All the best, Erik Pukinskis ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] How to write advanced matchers

2008-11-24 Thread Erik Pukinskis
Maddox <[EMAIL PROTECTED]> wrote: > "Erik Pukinskis" <[EMAIL PROTECTED]> writes: > >> * a matcher that accepts a block and passes on some information, like >> has_tag? >> * a matcher that can go in that block and use that information, like >>

[rspec-users] Do people write specs for the code in their steps? How?

2008-12-29 Thread Erik Pukinskis
> The approach I like to take is to follow the guidance of the system > (cucumber + rspec) every step of the way. Right now there are no > passing steps, so I'd write the code for the 1st pending step, run the > features and find the first thing that is missing or failing. This is one thing I don'

Re: [rspec-users] [Cucumber] Tabular data in steps

2009-01-29 Thread Erik Pukinskis
Yes, that should work. But you'd have to do Given /^there is a country "(.*)" with the cities:$/ do |country_name, cities_table| ... end Erik On Thu, Jan 29, 2009 at 12:47 AM, Juanma Cervera wrote: > Is it possible to mix a normal parameter argument for a step, with > tabular data? > > Somethi

[rspec-users] A nice general purpose step definition for adding/finding activerecord records

2009-02-23 Thread Erik Pukinskis
I thought other people might be interested in these step definitions. They allow you to write steps like: Given the following "turkeys" exist: |name |size |intelligence| |marko |big |dumb| |mello |small |smart| Or, Then the following "turkeys" should exist: ...

[rspec-users] Is there any way to use a second webrat session temporarily?

2009-03-16 Thread Erik Pukinskis
Dear Rspecucumberatubyists, I have a Rails app that creates subdomains, and I'd like to verify them in a cucumber feature like so: When I visit http://blingo.myapp.com Then I should see "Welcome to blingo!" The trouble is, webrat's visit method strips the domain off, and keeps only the path,

[rspec-users] Can you use RSpec to test initializers?

2008-05-06 Thread Erik Pukinskis
Hi there! I'm trying to spec out some code that will set the smtp_settings in a custom ActiveMailer object. Basically I want to check that if my configuration object has the right smtp_server, that the ActiveMailer object gets set up correctly. So, my spec looks like this: it "uses smtp serve