[rspec-users] autospec: non-standard filenames & redirecting output

2010-01-14 Thread DeNigris Sean
Rspec gurus, I have 2 questions about autospec. I've played around quite a bit, but can't figure it out... 1. I got autospec to work with my directory structure ("examples/*_example.rb"), but it only works if I have an empty spec/ directory. Otherwise it reverts to running tests instead of

Re: [rspec-users] Selenium client gem

2010-01-14 Thread David Chelimsky
On Thu, Jan 14, 2010 at 2:37 PM, David Chelimsky wrote: > On Thu, Jan 14, 2010 at 2:12 PM, Onno van der Straaten < > onno.van.der.straa...@gmail.com> wrote: > >> Hi, >> I'm trying to install the selenium client with gem install >> selenium-client. >> This returns the following message >> ERROR: c

Re: [rspec-users] Selenium client gem

2010-01-14 Thread David Chelimsky
On Thu, Jan 14, 2010 at 2:12 PM, Onno van der Straaten < onno.van.der.straa...@gmail.com> wrote: > Hi, > I'm trying to install the selenium client with gem install selenium-client. > This returns the following message > ERROR: could not find gem selenium-client locally or in a repository > > BTW,

[rspec-users] Selenium client gem

2010-01-14 Thread Onno van der Straaten
Hi, I'm trying to install the selenium client with gem install selenium-client. This returns the following message ERROR: could not find gem selenium-client locally or in a repository BTW, I'm following the RSpec book chapter 22 Automating the Browser with Webrat and Selenium. Wat this gem remov

Re: [rspec-users] default to just call the method?

2010-01-14 Thread Rick DeNatale
On Tue, Jan 12, 2010 at 5:49 PM, rogerdpack wrote: > Any interest in the following idea? > > > a.should include?("1:4") # if there's no matcher called include? then > just call include? > > or something along those lines? -1 You can already say a.should include("1:4") which is clearer IMHO.

Re: [rspec-users] Testing .Net Newbie

2010-01-14 Thread Ashley Moran
On Jan 14, 2010, at 1:17 pm, John Polling wrote: > I think this is the part that I'm confusing myself with as most Cucumber > information talks about using scenarios to drive the code out. So > Cucumber comes first, whereas I used to do the Acceptance testing after > all the other TDD stuff.

Re: [rspec-users] Testing .Net Newbie

2010-01-14 Thread Ashley Moran
On Jan 14, 2010, at 12:15 pm, David Chelimsky wrote: > re: Integration testing, everybody has a different definition. Before Rails > came along, the prevalent definition that I was aware of was "testing the > behaviour of two non-trivial components together." > > More recently, the definition

Re: [rspec-users] default to just call the method?

2010-01-14 Thread Ashley Moran
On Jan 12, 2010, at 10:49 pm, rogerdpack wrote: > a.should include?("1:4") # if there's no matcher called include? then > just call include? Am I right thinking that this would mean writing a method_missing that creates a matcher for every unhandled message on the example object (whatever scope

Re: [rspec-users] Testing .Net Newbie

2010-01-14 Thread Phillip Koebbe
John Polling wrote: Already reading that one thanks :-) It is a good book and it's helping me get my head around it all. It's just a case of understanding when to develop using Cucumber and when to user RSpec on it's own. I think this will come with experience. John Others can explain it

Re: [rspec-users] Testing .Net Newbie

2010-01-14 Thread David Chelimsky
On Thu, Jan 14, 2010 at 9:26 AM, Joaquin Rivera Padron wrote: > hi > > 2010/1/14 John Polling > > Phillip Koebbe wrote: >> >> > Hi John. Maybe this will help: >> > >> > http://www.pragprog.com/titles/achbd/the-rspec-book >> > >> > It's a good book. But when you get to the part about Webrat and >>

Re: [rspec-users] Testing .Net Newbie

2010-01-14 Thread Joaquin Rivera Padron
hi 2010/1/14 John Polling > Phillip Koebbe wrote: > > > Hi John. Maybe this will help: > > > > http://www.pragprog.com/titles/achbd/the-rspec-book > > > > It's a good book. But when you get to the part about Webrat and > > Selenium, just know that there are other options if you need them. > > Al

Re: [rspec-users] Testing .Net Newbie

2010-01-14 Thread John Polling
Phillip Koebbe wrote: > Hi John. Maybe this will help: > > http://www.pragprog.com/titles/achbd/the-rspec-book > > It's a good book. But when you get to the part about Webrat and > Selenium, just know that there are other options if you need them. Already reading that one thanks :-) It is a go

Re: [rspec-users] Testing .Net Newbie

2010-01-14 Thread David Chelimsky
On Jan 14, 2010, at 8:46 AM, Phillip Koebbe wrote: John Polling wrote: Generally what I do is drive all my individual classes out using NUnit and Rhino.Mocks and then do the acceptance testing later with FitNesse. I think this is the part that I'm confusing myself with as most Cucumber

Re: [rspec-users] Testing .Net Newbie

2010-01-14 Thread Phillip Koebbe
John Polling wrote: Generally what I do is drive all my individual classes out using NUnit and Rhino.Mocks and then do the acceptance testing later with FitNesse. I think this is the part that I'm confusing myself with as most Cucumber information talks about using scenarios to drive the code

Re: [rspec-users] Testing .Net Newbie

2010-01-14 Thread John Polling
David Chelimsky wrote: > Did you do all of your testing in NUnit? > > When I was working on .NET apps, I used FitNesse for acceptance testing > and > NUnit for isolation testing. With Rails, these same roles are played by > Cucumber and RSpec. > Generally what I do is drive all my individual cl

Re: [rspec-users] Testing .Net Newbie

2010-01-14 Thread Tom Stuart
On 14 Jan 2010, at 12:33, John Polling wrote: > Do Rails developers generally not test things in isolation using mocking > and stubbing? Yes, that's what RSpec is for. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/l

Re: [rspec-users] Testing .Net Newbie

2010-01-14 Thread David Chelimsky
On Thu, Jan 14, 2010 at 6:33 AM, John Polling wrote: > Thanks for this David. > > I suppose the thing I am so used to is testing classes in isolation > whereas Cucumber is about testing everything together. > Did you do all of your testing in NUnit? When I was working on .NET apps, I used FitNe

Re: [rspec-users] Testing .Net Newbie

2010-01-14 Thread John Polling
Thanks for this David. I suppose the thing I am so used to is testing classes in isolation whereas Cucumber is about testing everything together. Do Rails developers generally not test things in isolation using mocking and stubbing? John -- Posted via http://www.ruby-forum.com/. _

Re: [rspec-users] Testing .Net Newbie

2010-01-14 Thread David Chelimsky
On Thu, Jan 14, 2010 at 5:46 AM, John Polling wrote: > Hi, > > I've been a .Net developer for a number of years now and I'm a big fan > of TDD / BDD. I have been following these principles for a couple of > years and use tools such as NUnit for testing purposes. > > I am now looking at moving ac

[rspec-users] Testing .Net Newbie

2010-01-14 Thread John Polling
Hi, I've been a .Net developer for a number of years now and I'm a big fan of TDD / BDD. I have been following these principles for a couple of years and use tools such as NUnit for testing purposes. I am now looking at moving across to using RoR for a number of projects and I'm still getting my