Re: [rspec-users] Rspec error while running jruby -S rake spec

2011-09-15 Thread Chandu80
Hi David, So does that mean that I need to manually delete all other tables for the rake command to run successfully? Regards Chandrika On Sep 13, 11:32 am, David Chelimsky wrote: > On Sep 12, 2011, at 2:44 PM, Chandu80 wrote: > > > > > Hello All, > > > I followed steps to install Rspec as in t

[rspec-users] rspec not recognised

2011-09-15 Thread Aashish Kiran
Hi, I am using Rails 3 and rspec-rails gem. When try to run rspec spec\models\profile.rb I get result as follows: 'rspec' is not recognized as an internal or external command, Can you help? Thanks, Aashish -- Posted via http://www.ruby-forum.com/. ___

Re: [rspec-users] Mocking expectations on I/O operations

2011-09-15 Thread Rob Aldred
Thanks Justin, That isnt working... its erroring with: The method `delete` was not stubbed or was already unstubbed -- Rob Aldred Software Developer r...@stardotstar.com twitter: stardotstar 47 Newton Street, Manchester, M1 1FT T: +44 (0) 161 236 9740 ___

Re: [rspec-users] Rspec error while running jruby -S rake spec

2011-09-15 Thread David Chelimsky
On Sep 15, 2011, at 9:54 AM, Chandu80 wrote: > On Sep 13, 11:32 am, David Chelimsky wrote: >> On Sep 12, 2011, at 2:44 PM, Chandu80 wrote: >> >> >> >>> Hello All, >> >>> I followed steps to install Rspec as in the link pasted below. >> >>> http://www.pmamediagroup.com/2009/04/tutorial-install

Re: [rspec-users] Mocking expectations on I/O operations

2011-09-15 Thread Ash Moran
On 15 Sep 2011, at 10:05, Rob Aldred wrote: > Thanks Justin, > That isnt working... its erroring with: > > The method `delete` was not stubbed or was already unstubbed Hi Rob For reasons I could go into, when I'm coding myself I don't usually stub out file system access or other third party

Re: [rspec-users] rspec not recognised

2011-09-15 Thread Sidu Ponnappa
If you've installed the gem via bundler, you'll need to either do 'bundle exec rspec' or run the build via rake (do `rake -T | grep spec` to list all the spec related tasks). You should also take a look at http://blog.davidchelimsky.net/2011/07/18/stop-typing-bundle-exec/ In any event, most editor

Re: [rspec-users] Mocking expectations on I/O operations

2011-09-15 Thread Justin Ko
On Thu, Sep 15, 2011 at 5:05 AM, Rob Aldred wrote: > Thanks Justin, > That isnt working... its erroring with: > > The method `delete` was not stubbed or was already unstubbed > Woops, you're using expectations, not stubs. Try `File.rspec_reset` > > -- > Rob Aldred > > Software Developer > r...

Re: [rspec-users] Mocking expectations on I/O operations

2011-09-15 Thread Rob Aldred
Hey Ash, I like the idea of a wrapper. In fact I use this method for methods that need to shell out Maybe your right, the subdirectory would probably a better safer way of organising the temporary files. I'll have a re-think. Thanks for the info. Rob -- On Thursday, 15 September 2011 at 1

Re: [rspec-users] Mocking expectations on I/O operations

2011-09-15 Thread Andrew Premdas
On 14 September 2011 11:51, Rob Aldred wrote: > I'm speccing a small lib which manipulates image files using mini_magick. > The lib creates various temporary files during the process, the lib then > cleans up the temporary files at the end. > > I'm trying to mock expectations that the calls are m

Re: [rspec-users] Mocking expectations on I/O operations

2011-09-15 Thread Alex Chaffee
https://github.com/defunkt/fakefs might help too -- Alex Chaffee - a...@stinky.com http://alexch.github.com http://twitter.com/alexch ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users