[rspec-users] The problem with learning RSpec

2009-06-18 Thread Sarah Allen
I read this whole thread with interest (alerted by a cross-post on the railsbridge list, thx Zach). Thanks Stephen for kicking off this interesting discussion: > Given time, I think the patterns facilitated by RSpec could > *completely* revolutionize the way software happens everywhere, *if

Re: [rspec-users] The problem with learning RSpec

2009-06-18 Thread Bill Kocik
Just to add a couple cents in... I've been working as either a sysadmin or software developer for the last 10 years (software development pretty much exclusively for the last 5 or 6). I started picking up Rails about 2 years ago, and though I was always aware of TDD - and even occasionally dabbled

Re: [rspec-users] shared examples sharing methods

2009-06-18 Thread Andrew Premdas
2009/6/18 Ben Mabey > David Chelimsky wrote: > >> On Wed, Jun 17, 2009 at 10:14 AM, Andrew Premdas >> wrote: >> >> >>> Please have a look at >>> http://gist.github.com/131277 >>> What I'd like to do is create a shared_examples group which I can >>> parametize >>> a method. So my shared example wo

Re: [rspec-users] The problem with learning RSpec

2009-06-18 Thread Ben Mabey
Bill Kocik wrote: Just to add a couple cents in... I've been working as either a sysadmin or software developer for the last 10 years (software development pretty much exclusively for the last 5 or 6). I started picking up Rails about 2 years ago, and though I was always aware of TDD - and even

Re: [rspec-users] The problem with learning RSpec

2009-06-18 Thread Bill Kocik
Thanks for the encouragement, Ben. :) On Thu, Jun 18, 2009 at 1:36 PM, Ben Mabey wrote: >> Then /^I should find "(.+)" in JSON/ do |xpath| >>  json_hash = JSON.parse(@response.body.gsub(/^#{JSON_CALLBACK}\((.*)\)/, >> '\1')) >>  xmldoc = Nokogiri::XML(json_hash.to_xml) >>  xpath.gsub!('_', '-'

Re: [rspec-users] I am having a problem testing a date in a rails view

2009-06-18 Thread powertoaster
I fixed this problem, I was only checking for a partial string rather than the full string in the element. The way I discovere dit for those who are interested was by printing out the response.body object so that I could view the actuall content I was testing against.:jumping: -- View this messag

Re: [rspec-users] Spork and Merb and rSpec

2009-06-18 Thread Andy Shipman
On 16 Jun 2009, at 22:11, Tim Harper wrote: I'm interested to hear your experience with Spork and Merb. Right now Spork is doing some hooks in to rails (that are actually kind of aggressive right now) to help make spork work more out of the box - specifically, preventing rails from preload

Re: [rspec-users] Can't use Cucumber with Webrat and Selenium

2009-06-18 Thread Auto Bot
John Small wrote: > Well I can't help you but I do have a similar problem. In my case > Cucumber-Selenium works, Cucumber-Webrat works but Cucmber-Webrat- > Selenium doesn't work because Webrat issues requests to www.example.com > and Selenium starts up a mongrel on localhost:3001, connects to it v