Re: [rspec-users] Testing subdomains

2010-07-28 Thread Nicholas Wieland
On Jul 27, 2010, at 6:40 PM, Nicholas Wieland wrote: > Hi *, is someone using rspec 2 and rails 3 for testing subdomains ? How do I > test for example in a route spec tis route ? > > match 'profile', :to => 'users#profile', :constraints => { :subdomain => > /.+/ } it "routes /profile to Use

Re: [rspec-users] rspec 1 - nested examples (in an each block) use the final block variable 4 times instead of each of the 4 once

2010-07-28 Thread David Chelimsky
On Jul 28, 2010, at 5:42 PM, nruth wrote: > Please correct me if this is fixed in Rspec 2, but in Rspec 1 I have > hit upon the following problem (at least thrice, this time it costing > me several hours), code is the best example: > > I have a practice examination system where each record is one

[rspec-users] rspec 1 - nested examples (in an each block) use the final block variable 4 times instead of each of the 4 once

2010-07-28 Thread nruth
Please correct me if this is fixed in Rspec 2, but in Rspec 1 I have hit upon the following problem (at least thrice, this time it costing me several hours), code is the best example: I have a practice examination system where each record is one of several "subtests" (think tagging rather than sub

Re: [rspec-users] about spec.opts and command line options and global options

2010-07-28 Thread Jarmo Pertman
Thank You! If i understand correctly, then all the problems except #3 have been solved in RSpec 2? Nice that there are people with similar thoughts :) Jarmo Pertman - IT does really matter - http://www.itreallymatters.net On Jul 28, 10:27 pm, David Chelimsky wrote: > I thinkhttp://github.c

Re: [rspec-users] about spec.opts and command line options and global options

2010-07-28 Thread David Chelimsky
On Jul 28, 2010, at 1:52 PM, Jarmo Pertman wrote: > Hello! > > I have some questions/proposals which have been quite time on my mind > already. > > Let's suppose i have files under spec directory with the following > structure and contents: > # spec/helper.rb > module Helper > end > > # spec/m

[rspec-users] about spec.opts and command line options and global options

2010-07-28 Thread Jarmo Pertman
Hello! I have some questions/proposals which have been quite time on my mind already. Let's suppose i have files under spec directory with the following structure and contents: # spec/helper.rb module Helper end # spec/my_spec.rb describe Helper do # notice the usage of constant Helper end #spe