[rspec-users] default_url_options

2007-12-11 Thread Jonathan Linowes
Hi, i recently added a def default_url_options to application.rb (used by url_for , *_path etc). My method references request (eg request.domain) . But when I spec a controller, its dies in default_url_options with nil.domain, Is there a way for it to see "request"? I prefer to not have to

Re: [rspec-users] Rspec 1.0.8 with Rails 2.0

2007-12-11 Thread Nathan Sutton
It's likely to fall completely on its face in a horrific manner, you'll enjoy life much more if you use edge rspec. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 3052 rspec_on_rails edge revision 3049 rails edge revision 8269 On Dec 11, 2007, at 5:48 PM, Yitzhak Bar Geva wrote: > Is it O

[rspec-users] Alternate file jump in Textmate

2007-12-11 Thread Mikel Lindsaar
Hello all, Using RSpec 1.1 RC from the SVN source. Running in Textmate with the bundle, all working good. Got a problem with the Alternate File jump (Ctl Shift DownArrow) because it works fine in Rails with the html.erb templates, but I can not figure out how to get it working with HAML template

[rspec-users] Rspec 1.0.8 with Rails 2.0

2007-12-11 Thread Yitzhak Bar Geva
Is it OK to go ahead and generate a Rails 2.0 project with RSpec 1.0.8? Am I likely to run into problems? Would it be best advised to wait or can I go ahead now? Thanks, Yitzhak ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/m

Re: [rspec-users] can't access helper methods for model testing

2007-12-11 Thread David Chelimsky
On Dec 11, 2007 11:28 AM, Chris Olsen <[EMAIL PROTECTED]> wrote: > I would like to have some valid mock models readily available in the > helper module, but when I try to access the helper I get the error > saying that the method is not found. > === > describe MembersHelper do # Helper methods

Re: [rspec-users] RSpec TMbundle

2007-12-11 Thread Nathan Sutton
As usual, David to the rescue. Thanks, Nathan Sutton [EMAIL PROTECTED] rspec edge revision 3052 rspec_on_rails edge revision 3049 rails edge revision 8269 On Dec 11, 2007, at 12:40 PM, David Chelimsky wrote: > On Dec 11, 2007 12:28 PM, Ben Mabey <[EMAIL PROTECTED]> wrote: >> >> Nathan Sutton wr

[rspec-users] can't access helper methods for model testing

2007-12-11 Thread Chris Olsen
I would like to have some valid mock models readily available in the helper module, but when I try to access the helper I get the error saying that the method is not found. === describe MembersHelper do # Helper methods can be called directly in the examples (it blocks) def valid_member_mock

[rspec-users] rspec and rad-rails

2007-12-11 Thread Tim Harper
Quick announcement: I wrote a small enhancement to TestUnitRunner.rb to allow RadRails to run both Test::Unit cases and RSpec examples in the fancy pants GUI runner. Chris will be merging it in with future releases of RadRails, and we're going to work on getting the integration better (some limit

Re: [rspec-users] Transactional/Rollback problems

2007-12-11 Thread Scott Taylor
On Dec 11, 2007, at 4:16 PM, David Chelimsky wrote: > On Dec 11, 2007 2:56 PM, Scott Taylor > <[EMAIL PROTECTED]> wrote: >> >> >> Rolling back to revision 3131 seems to have fixed the problem. I >> see that >> 3132 has the following commit message: >> >> "Tighter integration with Test::Unit f

Re: [rspec-users] Transactional/Rollback problems

2007-12-11 Thread David Chelimsky
On Dec 11, 2007 2:56 PM, Scott Taylor <[EMAIL PROTECTED]> wrote: > > > Rolling back to revision 3131 seems to have fixed the problem. I see that > 3132 has the following commit message: > > "Tighter integration with Test::Unit for ActiveRecord fixtures. Speed up > fixtures." You mind filing that i

Re: [rspec-users] Transactional/Rollback problems

2007-12-11 Thread Scott Taylor
Rolling back to revision 3131 seems to have fixed the problem. I see that 3132 has the following commit message: "Tighter integration with Test::Unit for ActiveRecord fixtures. Speed up fixtures." Scott On Dec 11, 2007, at 3:06 PM, Scott Taylor wrote: I'm having a rollback problem

[rspec-users] Transactional/Rollback problems

2007-12-11 Thread Scott Taylor
I'm having a rollback problem with rspec trunk. It doesn't seem like rollbacks are happening quite as often as they should be. It appears as though the rollbacks are *NOT* occurring on the first description block in a file, but are for the rest. Here is a set of specs that are failing:

Re: [rspec-users] RSpec TMbundle

2007-12-11 Thread Jeroen Houben
Which versions (rspec and tmbundle) should we use with rails 2 (stable)? Can we just keep using rspec 1.08 with rails2? I noticed running specs from textmate with rails2 throws some errors. /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dep endencies.rb:263:in `load_miss

Re: [rspec-users] RSpec TMbundle

2007-12-11 Thread David Chelimsky
On Dec 11, 2007 12:28 PM, Ben Mabey <[EMAIL PROTECTED]> wrote: > > Nathan Sutton wrote: > > I tried checking it out today using instructions here: > > http://rspec.rubyforge.org/tools/extensions/editors/textmate.html > > > > I get a 'svn: Connection closed unexpectedly'. Did it move or is it > > d

Re: [rspec-users] RSpec TMbundle

2007-12-11 Thread Nathan Sutton
I wouldn't even know what to check to determine whether it had been moved. Nathan Sutton [EMAIL PROTECTED] rspec edge revision 3052 rspec_on_rails edge revision 3049 rails edge revision 8269 On Dec 11, 2007, at 12:28 PM, Ben Mabey wrote: > Nathan Sutton wrote: >> I tried checking it out to

Re: [rspec-users] RSpec TMbundle

2007-12-11 Thread Ben Mabey
Nathan Sutton wrote: > I tried checking it out today using instructions here: > http://rspec.rubyforge.org/tools/extensions/editors/textmate.html > > I get a 'svn: Connection closed unexpectedly'. Did it move or is it > down? > > Nathan Sutton > [EMAIL PROTECTED] > rspec edge revision 3052 > rsp

Re: [rspec-users] Attachment-fu + Story Runner

2007-12-11 Thread Daniel Tenner
I've now located where this is going wrong, though I am not yet sure how to fix it. In rails' integration.rb, there is a method called 'process'. around line 226. It mangles the parameters by calling: data = requestify(parameters) doing: puts "\n1===#{parameters.insp

[rspec-users] RSpec TMbundle

2007-12-11 Thread Nathan Sutton
I tried checking it out today using instructions here: http://rspec.rubyforge.org/tools/extensions/editors/textmate.html I get a 'svn: Connection closed unexpectedly'. Did it move or is it down? Nathan Sutton [EMAIL PROTECTED] rspec edge revision 3052 rspec_on_rails edge revision 3049 rails ed

Re: [rspec-users] Fresh rspec on rails install blows up

2007-12-11 Thread aslak hellesoy
On Dec 11, 2007 4:49 PM, Keith McDonnell <[EMAIL PROTECTED]> wrote: > Hi there, > > I installed the rspec on rails plugin for a new project today and guess > what -- it blows up! > Guess what - when RSpec 1.0.8 was released (August 12 2007), the latest release of RoR was 1.2.3 (March 13 2007). Ca

Re: [rspec-users] can't access helper methods for model testing

2007-12-11 Thread Chris Olsen
This isn't the best example, as I normally wouldn't validate a mock model, it was more for demonstration, although a bad one. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/l

Re: [rspec-users] Fresh rspec on rails install blows up

2007-12-11 Thread David Chelimsky
On Dec 11, 2007 9:49 AM, Keith McDonnell <[EMAIL PROTECTED]> wrote: > Hi there, > > I installed the rspec on rails plugin for a new project today and guess > what -- it blows up! > > All by other rspec on rails projects are working fine. > > I updated all gems & still no joy. Any ideas how I can tr

[rspec-users] Fresh rspec on rails install blows up

2007-12-11 Thread Keith McDonnell
Hi there, I installed the rspec on rails plugin for a new project today and guess what -- it blows up! All by other rspec on rails projects are working fine. I updated all gems & still no joy. Any ideas how I can troubleshoot this one ? Here's my setup: - ruby 1.8.4 (2005-12-24) [powerpc-dar

Re: [rspec-users] Attachment-fu + Story Runner

2007-12-11 Thread Daniel Tenner
Hi Luis, I read through that thread, but unfortunately it wasn't much help. fixture_file_upload also creates an ActionController::TestUploadedFile. It's is just a shortcut to ActionController::TestUploadedFile.new. There's no problem with the path - it creates the fixture and loads the f

Re: [rspec-users] Attachment-fu + Story Runner

2007-12-11 Thread Luis Lavena
On Dec 11, 2007 10:57 AM, Daniel Tenner <[EMAIL PROTECTED]> wrote: > > I've pasted up the code at: > > http://pastie.caboo.se/126925 > > Since there are quite a few files involved. > > Thanks for your time, > A similar discussion was raised back in november (about fixture_file_upload): http://rub

Re: [rspec-users] Attachment-fu + Story Runner

2007-12-11 Thread Daniel Tenner
I've pasted up the code at: http://pastie.caboo.se/126925 Since there are quite a few files involved. Thanks for your time, Daniel On 11 Dec 2007, at 13:28 11 Dec 2007, David Chelimsky wrote: On Dec 11, 2007 6:18 AM, Daniel Tenner <[EMAIL PROTECTED]> wrote: Hi all, I'm trying to run a Sto

Re: [rspec-users] Attachment-fu + Story Runner

2007-12-11 Thread David Chelimsky
On Dec 11, 2007 6:18 AM, Daniel Tenner <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm trying to run a Story Runner integration test that uploads a file > through Attachment-fu. > > I've tried various ways of specifying the file data, from custom mocks: > class MockFile < Struct.new > (:original_filen

[rspec-users] Attachment-fu + Story Runner

2007-12-11 Thread Daniel Tenner
Hi all, I'm trying to run a Story Runner integration test that uploads a file through Attachment-fu. I've tried various ways of specifying the file data, from custom mocks: class MockFile < Struct.new (:original_filename, :read, :content_type); end fdata = MockFile.new "test_upload.txt", "Tes