[rspec-users] What argument should I pass for mock(), stub() and double()

2009-10-10 Thread Hunt Jon
Hi - I'm reading the RSpec book. I see an example like: customer = double('customer') What is the customer that is in the argument for? How is this different from: customer = double() ? Can anybody explain to me? - Jon ___ rspec-users mailing l

Re: [rspec-users] Mocking find_by_sql

2009-06-06 Thread Hunt Jon
You might not be understanding the usage of mock very well. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Difference between spec:server and autospec

2009-06-04 Thread Hunt Jon
Thanks Scott. I don't get what happens if I add --drb to spec/spec.opts files. Can anybody explain to me, please? On Thu, Jun 4, 2009 at 3:24 PM, Scott Taylor wrote: > Hunt Jon wrote: >> >> What's the difference between spec:server and autospec? >> >> >

[rspec-users] Difference between spec:server and autospec

2009-06-03 Thread Hunt Jon
What's the difference between spec:server and autospec? I understand spec:server is only for a Rails project while autospec can work with any projects. I read http://wiki.github.com/dchelimsky/rspec/spec_server-autospec-nearly-pure-bdd-joy but couldn't understand it. I leave autotest/autospec r

[rspec-users] How to spec two lines in application_controller.rb

2009-05-26 Thread Hunt Jon
I need to spec the following lines: helper :all # include all helpers, all the time protect_from_forgery # See ActionController::RequestForgeryProtection for detail Can anybody give me a hint? I create "application_controller_spec.rb" and now what? Jon __

[rspec-users] New Google Groups for Vim and Ruby/Rails Developers

2009-02-18 Thread Hunt Jon
Announcement for new group for Vim users. http://groups.google.com/group/vim-on-rails?hl=en Sharing vim usage for Ruby on Rails development. Includes any platform (Windows, Linux and Mac). Discuss anything related to Ruby and Ruby on Rails development. (migration from TextMate, HAML/SASS, RSpec,

Re: [rspec-users] Failing in TextMate but not in rake...

2008-09-06 Thread Hunt Jon
Also make sure what the file "~/.MacOSX/environment.plist" says or if you set up the file correctly. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Failing in TextMate but not in rake...

2008-09-05 Thread Hunt Jon
http://wiki.macromates.com/Troubleshooting/RubyVersionIssue Hope this helps. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users