[rspec-users] Help with the rspec and the xpath

2011-07-10 Thread Parag Dave
Hi Geeks, i need help with the rspec, Some time i having a problem with locating the element with the xpath Same element, i can able to select some time where some time i can not. Is there a bug or i need to do some specific for that? My way to locate xpath browser.link(:xpath,"/html/body/div[@i

[rspec-users] Rspec or Test:Unit

2011-07-10 Thread Chandu80
Hello All, I want to know which out of Rspec and Test:Unit is the most used in the industry for unit/integration testing and why? Regards Chandrika ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Trouble with RSpec mock "@macropost.should_receive(:save).and_return(true)" -- produces error expected :save with (any args) once, but received it 0 times

2011-07-10 Thread David Chelimsky
On Jul 8, 2011, at 5:37 PM, Dean wrote: > I'm getting the following RSpec failed test output when I run spec > spec/controllers/macroposts_controller_spec.rb: > > http://pastie.org/2184821 > > Here's the controller code for the "create" action for which the tests are > failing: > > http:/

Re: [rspec-users] Trouble with RSpec mock "@macropost.should_receive(:save).and_return(true)" -- produces error expected :save with (any args) once, but received it 0 times

2011-07-10 Thread Jatin kumar
On Sun, Jul 10, 2011 at 4:30 PM, David Chelimsky wrote: > > On Jul 8, 2011, at 5:37 PM, Dean wrote: > > I'm getting the following RSpec failed test output when I run spec > spec/controllers/macroposts_controller_spec.rb: > > http://pastie.org/2184821 > > Here's the controller code for the "create"

Re: [rspec-users] Trouble with RSpec mock "@macropost.should_receive(:save).and_return(true)" -- produces error expected :save with (any args) once, but received it 0 times

2011-07-10 Thread David Chelimsky
On Jul 10, 2011, at 8:03 AM, Jatin kumar wrote: > On Sun, Jul 10, 2011 at 4:30 PM, David Chelimsky wrote: > > On Jul 8, 2011, at 5:37 PM, Dean wrote: > >> I'm getting the following RSpec failed test output when I run spec >> spec/controllers/macroposts_controller_spec.rb: >> >> http://pastie

Re: [rspec-users] Rspec or Test:Unit

2011-07-10 Thread Justin Ko
On Fri, Jul 8, 2011 at 2:59 AM, Chandu80 wrote: > Hello All, > I want to know which out of Rspec and Test:Unit is the most used in > the industry for unit/integration testing and why? > http://22ideastreet.com/blog/2011/06/02/the-state-of-ruby-and-testing/ As for whytry them both and decide