[rspec-users] [RSpec] Message expectations and #dup / #clone

2009-01-19 Thread Nick Hoffman
Can anyone confirm that message expectations are not copied/duplicated to the new object when using Object#dup or #clone ? Thanks! Nick ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] [Cucumber] code stats

2009-01-19 Thread aslak hellesoy
On Mon, Jan 19, 2009 at 9:38 PM, James Byrne wrote: > Rspec provides a stats task for rake. However, it does not reference > cucumber step definitions, possibly because these are not easily > categorized into the MVC etc. test classifications that the rspec task > uses. > > Is extending the rake

Re: [rspec-users] [Cucumber] Scenario Outlines Output Insufficient

2009-01-19 Thread Andrew Premdas
Comments below 2009/1/19 Joseph Wilk > Andrew Premdas wrote: > > You misunderstood I bit of my post, I've nested a comment. Its towards > > the > > end of the post. > > > > 2009/1/18 Joseph Wilk > > > >> Scenario Outline: viewing resources # > >> features/admin

[rspec-users] [Cucumber] code stats

2009-01-19 Thread James Byrne
Rspec provides a stats task for rake. However, it does not reference cucumber step definitions, possibly because these are not easily categorized into the MVC etc. test classifications that the rspec task uses. Is extending the rake stats task to encompass cucumber step definitions possible? If s

Re: [rspec-users] Rake features:rcov question

2009-01-19 Thread Matt Wynne
On 19 Jan 2009, at 15:49, James Byrne wrote: I have reached a point where I thought that it might be useful to see how must test coverage I have for the code I have written. However, running rake features:rcov produces some unexpected output. I see this in the index file: /usr/lib/ruby/1

[rspec-users] gem installation issues

2009-01-19 Thread Scott Taylor
I'm getting the following error when trying to install rspec: scott-taylors-macbook-pro:dl_forms(specs) smt$ sudo gem install rspec Password: ERROR: Error installing rspec: invalid gem format for /usr/local/ruby_versions/1_8_6/lib/ruby/gems/1.8/cache/rspec-1.1.12.gem Are the gems no long

Re: [rspec-users] [RSpec] matcher for href

2009-01-19 Thread Jim Gay
On Jan 19, 2009, at 2:11 PM, James Byrne wrote: Of the several ways available to test for this, what would be the preferred way to see if the following is present in an html document WITHOUT actually following the link? response.should have_tag('a[href=?]','/users/new') I tried this: res

Re: [rspec-users] [Rails, RSpec] The config.gem rake task chicken and egg thing

2009-01-19 Thread Scott Taylor
Matt Wynne wrote: Sorry folks, because I know this has been asked before but I don't remember anyone giving enough detail for me to sort this out the way I want to. How do I change my rake tasks to silently fail if they can't require rspec? I can do this: begin require 'spec/rake/spe

Re: [rspec-users] [RSpec] matcher for href

2009-01-19 Thread Jarkko Laine
On 19.1.2009, at 21.11, James Byrne wrote: Of the several ways available to test for this, what would be the preferred way to see if the following is present in an html document WITHOUT actually following the link? I tried this: response.body.should have_text('href="/users/new"') respons

Re: [rspec-users] [RSpec] matcher for href

2009-01-19 Thread James Byrne
James Byrne wrote: > Of the several ways available to test for this, what would be the > preferred way to see if the following is present in an html document > WITHOUT actually following the link? Apparently this is the correct form: response.body.should have_tag("a[href=/users/new]") -- Pos

[rspec-users] [Rails, RSpec] The config.gem rake task chicken and egg thing

2009-01-19 Thread Matt Wynne
Sorry folks, because I know this has been asked before but I don't remember anyone giving enough detail for me to sort this out the way I want to. How do I change my rake tasks to silently fail if they can't require rspec? I can do this: begin require 'spec/rake/spectask' ...

[rspec-users] [RSpec] matcher for href

2009-01-19 Thread James Byrne
Of the several ways available to test for this, what would be the preferred way to see if the following is present in an html document WITHOUT actually following the link? I tried this: response.body.should have_text('href="/users/new"') But this test fails, even though the rake features re

Re: [rspec-users] [Cucumber, Webrat] I should see behaves strangely with html

2009-01-19 Thread Zach Dennis
On Mon, Jan 19, 2009 at 9:21 AM, Pau Cor wrote: > Fernando Perez wrote: >> However yesterday I looked in the code of a project (mephistoblog was >> it?), and I noticed that they have: config.gem 'nokogiri' in >> environement.rb. I don't have it, is it compulsory for correctly parsing >> the respon

Re: [rspec-users] [Cucumber] Scenario Outlines Output Insufficient

2009-01-19 Thread Joseph Wilk
Andrew Premdas wrote: > You misunderstood I bit of my post, I've nested a comment. Its towards > the > end of the post. > > 2009/1/18 Joseph Wilk > >> Scenario Outline: viewing resources # >> features/admin/poop.feature:11 >> >> -- >> features/step_definitions/

[rspec-users] Rake features:rcov question

2009-01-19 Thread James Byrne
I have reached a point where I thought that it might be useful to see how must test coverage I have for the code I have written. However, running rake features:rcov produces some unexpected output. I see this in the index file: /usr/lib/ruby/1.8/base64.rb ... /usr/lib/ruby/1.8/benchmark.rb ...

Re: [rspec-users] cucumber rake file question

2009-01-19 Thread James Byrne
Tom Cloyd wrote: > > > I did NOT know that the line was optional, though. It's not documented > anywhere that I've seen, although I suppose that to those more > knowledgeable than I that fact may be obvious. My experience is that, while copious, Ruby documentation suffers from excessive tersenes

Re: [rspec-users] [Cucumber, Documentation]

2009-01-19 Thread aslak hellesoy
On Mon, Jan 19, 2009 at 3:48 PM, David Chelimsky wrote: > Forgive me if this was already mentioned. > > While we're moving doco around on the cucumber wiki, one thing that > should change is the name of: > http://wiki.github.com/aslakhellesoy/cucumber/using-fit-tables-in-a-feature > > We don't wan

Re: [rspec-users] Reorganize documentation for Cucumber at Github

2009-01-19 Thread James Byrne
Aslak Hellesøy wrote: . > On the other hand, I don't have time or even desire to create a wiki > that is as good as the GitHub wiki and put it on cukes.info. > My only addition is that there is nothing preventing a community effort to add a standard navigation page to the front of the Cucumber

[rspec-users] [Cucumber, Documentation]

2009-01-19 Thread David Chelimsky
Forgive me if this was already mentioned. While we're moving doco around on the cucumber wiki, one thing that should change is the name of: http://wiki.github.com/aslakhellesoy/cucumber/using-fit-tables-in-a-feature We don't want to talk about these as FIT tables, so the wiki page should probably

Re: [rspec-users] [Cucumber, Webrat] I should see behaves strangely with html

2009-01-19 Thread Pau Cor
Fernando Perez wrote: > However yesterday I looked in the code of a project (mephistoblog was > it?), and I noticed that they have: config.gem 'nokogiri' in > environement.rb. I don't have it, is it compulsory for correctly parsing > the response body? I don't have config.gem 'nokogiri' in envi

Re: [rspec-users] [Cucumber, Webrat] I should see behaves strangely with html

2009-01-19 Thread Fernando Perez
Pau Cor wrote: > Can you please post the contents of your step definition? I don't have any step definition, I simply use: Then I should see "Hello world, its definition is in webrat_steps.rb However yesterday I looked in the code of a project (mephistoblog was it?), and I noticed that they hav