Re: [rspec-users] Possible improvements to routing spec API

2010-07-07 Thread Wincent Colaiuta
El 08/07/2010, a las 04:45, Lalish-Menagh, Trevor escribió: > OK, here is an idea. I was thinking about how to make routing tests > that make sense. I agree with Wincent that the Rails verbiage for the > routing tests is confusing, but what is NOT confusing is the new > routing format, so why not

Re: [rspec-users] Possible improvements to routing spec API

2010-07-07 Thread Lalish-Menagh, Trevor
OK, here is an idea. I was thinking about how to make routing tests that make sense. I agree with Wincent that the Rails verbiage for the routing tests is confusing, but what is NOT confusing is the new routing format, so why not try out this format (http://gist.github.com/467563): describe 'routi

Re: [rspec-users] RSpec uses at_exit - forks and stuff

2010-07-07 Thread David Chelimsky
On Jul 7, 2010, at 8:22 AM, Andrew Premdas wrote: > Hi there. > > My understanding (which is limited) is that rspec uses at_exit to run its > specs. I don't really know why - could somoene explain? The initial motivation was that it makes it easy to make sure it works whether you run it with t

Re: [rspec-users] Possible improvements to routing spec API

2010-07-07 Thread Wincent Colaiuta
El 07/07/2010, a las 16:42, David Chelimsky escribió: > On Jul 7, 2010, at 7:39 AM, Wincent Colaiuta wrote: > >> El 07/07/2010, a las 13:29, David Chelimsky escribió: > > How about going back to map, with to_and_from: > > it { should map(get "/issues/new").to_and_from("issues#new") } > >

Re: [rspec-users] Possible improvements to routing spec API

2010-07-07 Thread David Chelimsky
On Jul 7, 2010, at 7:39 AM, Wincent Colaiuta wrote: > El 07/07/2010, a las 13:29, David Chelimsky escribió: > >> Seems as though this format has been abandoned in this conversation: >> >> it { should route(get "/issues/new").to("issues#new") } >> it { should generate("/issues/new").from("issues

Re: [rspec-users] Possible improvements to routing spec API

2010-07-07 Thread Wincent Colaiuta
El 07/07/2010, a las 13:29, David Chelimsky escribió: > Seems as though this format has been abandoned in this conversation: > > it { should route(get "/issues/new").to("issues#new") } > it { should generate("/issues/new").from("issues#new") } > > I think that verbiage is concise and intention

[rspec-users] RSpec uses at_exit - forks and stuff

2010-07-07 Thread Andrew Premdas
Hi there. My understanding (which is limited) is that rspec uses at_exit to run its specs. I don't really know why - could somoene explain? My problem with this behaviour is that I would like the running of a spec to start an instance of solr (using Sunspot) if one is not running. The problem wit

[rspec-users] Remarkable Rails validations not working

2010-07-07 Thread johnnybutler7
Hi, Ive installed the remarkable_rails plugin(3.1.13) so i can use the macros to test the model associations and validations. For my model user i have: validates_presence_of :title, :message => 'cannot be blank!' validates_length_of :title, :within => 2..40, :too_short => 'is too short!',

Re: [rspec-users] Possible improvements to routing spec API

2010-07-07 Thread David Chelimsky
On Jul 7, 2010, at 1:24 AM, Wincent Colaiuta wrote: > El 07/07/2010, a las 01:16, Lalish-Menagh, Trevor escribió: > >> Hi David, >> >> You make a good point. I was talking with a coworker about this >> problem, and he suggested a simpler format, that I think will coincide >> some with Wincent's

Re: [rspec-users] Setting up rspec-rails for hacking

2010-07-07 Thread David Chelimsky
On Jul 7, 2010, at 5:26 AM, Trevor Lalish-Menagh wrote: >> Did you know about the rspec-dev meta project? >> >> http://github.com/rspec/rspec-dev > > That is great. I should have looked for that before setting this up. I just > didn't think about it. > >> Perhaps we should update the rspec-*

Re: [rspec-users] Setting up rspec-rails for hacking

2010-07-07 Thread Trevor Lalish-Menagh
> Did you know about the rspec-dev meta project? > > http://github.com/rspec/rspec-dev That is great. I should have looked for that before setting this up. I just didn't think about it. > Perhaps we should update the rspec-* READMEs with a point back to rspec-dev > so that people know about i

Re: [rspec-users] Setting up rspec-rails for hacking

2010-07-07 Thread Wincent Colaiuta
El 07/07/2010, a las 03:54, Lalish-Menagh, Trevor escribió: > I am sure most of you could do this easily, but I wanted to write down > how I got there in any case, so here are my instructions on how to set > up rspec-rails to hack on: > http://trevmex.com/post/779078048/how-to-start-hacking-a-ruby