Re: [rspec-users] webrat within selector

2008-10-13 Thread Jonathan Linowes
thanks guys yeah, my case is a step like When "I click on the $tab tab"... I want to make sure its a link in a tab, not some other link on the page with the same text On Oct 14, 2008, at 2:13 AM, Bryan Helmkamp wrote: Jonathan, This should work: within "#user_43" do |scope| scope.clic

[rspec-users] Any Plans on Tag support in Cucumber

2008-10-13 Thread wei wei
Hi, ThoughtWorks just released the auto test toolset Twist, the "tagging" feature seems pretty useful, http://studios.thoughtworks.com/twist-agile-test-automation/twist-features-and-benefits "Tags allow you to organize test suites in multiple dimensions. With tags, you can include a test in a smoke

Re: [rspec-users] rspec - undefined method `describe' for main:Object

2008-10-13 Thread Mano ah
Thank you Pat Maddox,Douglas Adams,Luis Lavena,Scott Taylor for your kind help. I have installed the plugins rspec and rspec-rails using git. I was not running the spec controller from the root thats the main problem. I followed all of your useful suggestions and able to build and run a proj

Re: [rspec-users] webrat within selector

2008-10-13 Thread Bryan Helmkamp
Jonathan, This should work: within "#user_43" do |scope| scope.click_link "Edit" end If you're using Rails' record identification HTML helpers, you can do something like within('#' + dom_id(user)) to save some typing. Scott's right that I'd recommend avoiding targeting IDs when possible, but

Re: [rspec-users] RSpec Book(s) on the radar

2008-10-13 Thread Oscar Del ben
Chris Olsen wrote: > Oscar Del ben wrote: >> David Chelimsky wrote: >>> It's definitely happening. We've enlisted a few additional >>> contributors and the wheels are spinning faster now. >>> >>> As for the beta book, I don't know if there will be on at this point. >>> We may go straight to print.

Re: [rspec-users] Rails config.gem and rspec, rspec-rails

2008-10-13 Thread David Chelimsky
On Tue, Oct 14, 2008 at 2:48 AM, Zach Dennis <[EMAIL PROTECTED]> wrote: > In #rspec the instructions for installing rspec and rspec-rails on a > Rails project. Specifically talking about the following line from > http://github.com/dchelimsky/rspec-rails/wikis/home > > config.gem "rspec-rails", :li

[rspec-users] Rails config.gem and rspec, rspec-rails

2008-10-13 Thread Zach Dennis
In #rspec the instructions for installing rspec and rspec-rails on a Rails project. Specifically talking about the following line from http://github.com/dchelimsky/rspec-rails/wikis/home config.gem "rspec-rails", :lib => "spec" I think this should be updated to not instruct people to do this. R

Re: [rspec-users] Checking that a controller created a separate model object

2008-10-13 Thread Nick Hoffman
On 2008-10-13, at 17:14, O. Frabjous-Dey wrote: I thought some more about the issue and I think I'm approaching the problem the wrong way to begin with. As I understand it, part of the philosophy of RSpec is that using mocks and stubs when testing controllers and views instead of touching t

Re: [rspec-users] RSpec Book(s) on the radar

2008-10-13 Thread Chris Olsen
Oscar Del ben wrote: > David Chelimsky wrote: >> It's definitely happening. We've enlisted a few additional >> contributors and the wheels are spinning faster now. >> >> As for the beta book, I don't know if there will be on at this point. >> We may go straight to print. Either way, I'll update as

Re: [rspec-users] Checking that a controller created a separate model object

2008-10-13 Thread O. Frabjous-Dey
On Mon, Oct 13, 2008 at 1:47 PM, Nick Hoffman <[EMAIL PROTECTED]> wrote: > On 2008-10-12, at 23:49, O. Frabjous-Dey wrote: > >> Hi Nick, >> >> The :new action comes straight from script/generate rspec_scaffold: >> >> def new >>@group = Group.new >> >>respond_to do |format| >> format.

Re: [rspec-users] Checking that a controller created a separate model object

2008-10-13 Thread Nick Hoffman
On 2008-10-12, at 23:49, O. Frabjous-Dey wrote: Hi Nick, The :new action comes straight from script/generate rspec_scaffold: def new @group = Group.new respond_to do |format| format.html end end I took out the XML rendering, but left in the respond_to block just in cas

Re: [rspec-users] webrat within selector

2008-10-13 Thread Scott Taylor
On Oct 13, 2008, at 1:54 PM, Jonathan Linowes wrote: anyone know if/how webrat can scope a clicks_link within a selector? eg, if I have more than one "Foo" link on a page, I want to make sure I click the one within a specific div I'm pretty sure clicks link can also take an id. It's not t

[rspec-users] webrat within selector

2008-10-13 Thread Jonathan Linowes
anyone know if/how webrat can scope a clicks_link within a selector? eg, if I have more than one "Foo" link on a page, I want to make sure I click the one within a specific div Tia linoj ___ rspec-users mailing list rspec-users@rubyforge.org http:

Re: [rspec-users] RSpec Book(s) on the radar

2008-10-13 Thread Oscar Del ben
David Chelimsky wrote: > It's definitely happening. We've enlisted a few additional > contributors and the wheels are spinning faster now. > > As for the beta book, I don't know if there will be on at this point. > We may go straight to print. Either way, I'll update as I know more > and I'll star