Re: [rspec-users] have_tag with a block

2009-02-03 Thread MarkMT
Thanks David. Those specs are very instructive. I have no idea what I was doing wrong before, but the behavior I'm seeing now is indeed consistent with the specs and matches what I had understood from the code I'd looked at (I suspect it'll stop working as soon as I send this :-) ). Actually my si

Re: [rspec-users] nokogiri selector help

2009-02-03 Thread Zach Dennis
On Fri, Jan 30, 2009 at 9:45 PM, Jonathan Linowes wrote: > > On Jan 25, 2009, at 11:58 AM, Zach Dennis wrote: > >> On Sat, Jan 24, 2009 at 12:05 AM, Jonathan Linowes >> wrote: >>> >>> hiya, >>> >>> i want the selector that would return a of a table if any td >>> contains >>> some text, so i can

Re: [rspec-users] have_tag with a block

2009-02-03 Thread David Chelimsky
On Tue, Feb 3, 2009 at 7:52 PM, MarkMT wrote: > This is really a webrat question, but I haven't had any reaction to > this from the webrat group. Maybe someone here can offer a comment... > > I've been fooling around with webrat view matchers in merb / cucumber > and I'm trying to figure out wheth

[rspec-users] have_tag with a block

2009-02-03 Thread MarkMT
This is really a webrat question, but I haven't had any reaction to this from the webrat group. Maybe someone here can offer a comment... I've been fooling around with webrat view matchers in merb / cucumber and I'm trying to figure out whether the block parameter in have_tag actually does anythin

Re: [rspec-users] Rcov - Specifying rake tasks

2009-02-03 Thread James Byrne
James Byrne wrote: > I think that I have this straightened now. > Cucumber::Rake::Task.new(:cucumber) etc. are factory methods that are > processed as encountered by rake. Having spent the day delving into Rake and the internals of factory methods for Rake included with RSpec and Cucumber, I d

Re: [rspec-users] [Cucumber] 0.1.99.x parse errors

2009-02-03 Thread aslak hellesoy
On Tue, Feb 3, 2009 at 8:40 PM, David Chelimsky wrote: > On Tue, Feb 3, 2009 at 2:30 AM, aslak hellesoy > wrote: >> Folks, >> >> If you encounter parse errors on 0.1.99.x (0.2 prereleases), please do >> the following: >> >> 1) Create a http://gist.github.com/ with the full (but minimal) >> featu

Re: [rspec-users] Rcov - Specifying rake tasks

2009-02-03 Thread James Byrne
James Byrne wrote: > I am having a good deal of trouble grappling with how rake tasks are > processed. In my rcov.rake file I have this: I think that I have this straightened now. Cucumber::Rake::Task.new(:cucumber) etc. are factory methods that are processed as encountered by rake. -- Poste

[rspec-users] rspec and shoulda, together again at last

2009-02-03 Thread David Chelimsky
Joe Ferris at thoughbot just announced the latest release of shoulda with an exciting new feature: RSpec-compatible ActiveRecord matchers! http://giantrobots.thoughtbot.com/2009/2/3/speculating-with-shoulda I'm excited about this for a few reasons. To quote Tammer Saleh, shoulda's creator (from h

Re: [rspec-users] Cucumber - but really ruby

2009-02-03 Thread Ngoc Dao
Explanation: http://jimhoskins.com/2008/10/07/ruby-percent-syntax-percent-functions/ Ngoc. On Wed, Feb 4, 2009 at 3:56 AM, Emmanuel Pinault wrote: > w% is a ruby notation. It creates an Array of of the literal string you > type separated by white space > > Emmanuel > > On Feb 3, 2009, at 10:4

Re: [rspec-users] Rcov - Specifying rake tasks

2009-02-03 Thread James Byrne
I am having a good deal of trouble grappling with how rake tasks are processed. In my rcov.rake file I have this: desc "Rcov code coverage reports" require 'rcov/rcovtask' require 'spec/rake/spectask' require 'cucumber/rake/task' #task :rcov => "rcov:complete" namespace :rcov do ... Cuc

Re: [rspec-users] Cucumber - but really ruby

2009-02-03 Thread Nicolás Sanguinetti
Uh, seems my email never arrived? This is what I had written: %w == string.split(/\s+/) (maybe not exactly that regexp, but basically it's an array of the words--hence the w) % == string, but without needing to escape the quotes. It's the same as using %Q (ie, it understands escape sequences and

Re: [rspec-users] Cucumber - but really ruby

2009-02-03 Thread James Byrne
David Chelimsky wrote: > On Tue, Feb 3, 2009 at 1:10 PM, James Byrne > wrote: >> James Byrne wrote: >>> >>> Thank you. What does %[...] do? >> >> This would not happen to be the same thing as %Q[..] would it? > > Nope. > > http://www.rubycentral.com/pickaxe/tut_stdtypes.html > > scroll down to

[rspec-users] Rcov - Specifying rake tasks

2009-02-03 Thread James Byrne
I am trying to get a customized rcov rake task working. What I have so far looks like this: desc "Rcov code coverage reports" require 'rcov/rcovtask' require 'spec/rake/spectask' require 'cucumber/rake/task' task :rcov => "rcov:all" namespace :rcov do Rcov::RcovTask.new(:all) do task

Re: [rspec-users] [Cucumber] 0.1.99.x parse errors

2009-02-03 Thread David Chelimsky
On Tue, Feb 3, 2009 at 2:30 AM, aslak hellesoy wrote: > Folks, > > If you encounter parse errors on 0.1.99.x (0.2 prereleases), please do > the following: > > 1) Create a http://gist.github.com/ with the full (but minimal) > feature that fails to parse > 2) Got to the *raw* view of that gist and c

Re: [rspec-users] Cucumber - but really ruby

2009-02-03 Thread Mischa Fierer
A full listing of this stuff can be found here: http://www.zenspider.com/Languages/Ruby/QuickRef.html#6 % appears to be the same thing as %Q On Tue, Feb 3, 2009 at 1:10 PM, James Byrne wrote: > James Byrne wrote: > > > > Thank you. What does %[...] do? > > This would not happen to be the same

Re: [rspec-users] Cucumber - but really ruby

2009-02-03 Thread Emmanuel Pinault
Could not remember that one but based on testing on irb, seems to do the reverse :) Array to string. so %[test blah] becomes "test blah" On Feb 3, 2009, at 11:04 AM, James Byrne wrote: Emmanuel Pinault wrote: w% is a ruby notation. It creates an Array of of the literal string you type se

Re: [rspec-users] Cucumber - but really ruby

2009-02-03 Thread Nicolás Sanguinetti
%w == string.split(/\s+/) (maybe not exactly that regexp, but basically it's an array of the words--hence the w) % == string, but without needing to escape the quotes. It's the same as using %Q (ie, it understands escape sequences and interpolated expressions inside, while %q is a literal string)

Re: [rspec-users] Cucumber - but really ruby % and %w

2009-02-03 Thread James Byrne
James Byrne wrote: > > This would not happen to be the same thing as %Q[..] would it? Apparently, the construct: t.rcov_opts = %w{--rails --exclude lib\/ruby,lib64\/ruby,\/usr,osx\/objc,gems\/,test\/,spec\/,features\/} t.rcov_opts << %[--output "coverage"] is equivalent to: t.rco

Re: [rspec-users] Cucumber - but really ruby

2009-02-03 Thread David Chelimsky
On Tue, Feb 3, 2009 at 1:10 PM, James Byrne wrote: > James Byrne wrote: >> >> Thank you. What does %[...] do? > > This would not happen to be the same thing as %Q[..] would it? Nope. http://www.rubycentral.com/pickaxe/tut_stdtypes.html scroll down to strings > -- > Posted via http://www.ruby-f

Re: [rspec-users] Cucumber - but really ruby

2009-02-03 Thread David Chelimsky
On Tue, Feb 3, 2009 at 12:49 PM, James Byrne wrote: > In the cucumber rake task I see this construct: > >t.rcov_opts = %w{--rails --exclude > lib\/ruby,lib64\/ruby,\/usr,osx\/objc,gems\/,test\/,spec\/,features\/} >t.rcov_opts << %[--output "coverage"] > > My questions is: What do %w and %

Re: [rspec-users] Cucumber - but really ruby

2009-02-03 Thread James Byrne
James Byrne wrote: > > Thank you. What does %[...] do? This would not happen to be the same thing as %Q[..] would it? -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo

Re: [rspec-users] Cucumber - but really ruby

2009-02-03 Thread James Byrne
Emmanuel Pinault wrote: > w% is a ruby notation. It creates an Array of of the literal string > you type separated by white space > > Emmanuel Thank you. What does %[...] do? -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-

Re: [rspec-users] Cucumber - but really ruby

2009-02-03 Thread Emmanuel Pinault
w% is a ruby notation. It creates an Array of of the literal string you type separated by white space Emmanuel On Feb 3, 2009, at 10:49 AM, James Byrne wrote: In the cucumber rake task I see this construct: t.rcov_opts = %w{--rails --exclude lib\/ruby,lib64\/ruby,\/usr,osx\/objc,gems\/,t

[rspec-users] Cucumber - but really ruby

2009-02-03 Thread James Byrne
In the cucumber rake task I see this construct: t.rcov_opts = %w{--rails --exclude lib\/ruby,lib64\/ruby,\/usr,osx\/objc,gems\/,test\/,spec\/,features\/} t.rcov_opts << %[--output "coverage"] My questions is: What do %w and % represent with respect to the "block"? in the first case and t

Re: [rspec-users] [Cucumber] How Do You Use Cucumber?

2009-02-03 Thread Mark Wilden
On Tue, Feb 3, 2009 at 9:42 AM, s.ross wrote: > - Use the Textmate bundle > I just wanted to reply to this - Tim Pope's Cucumber plugin for Vim is awesome. You can be editing a feature step and go to its definition with a keystroke. ///ark ___ rspec-

Re: [rspec-users] Rcov rake task problems

2009-02-03 Thread James Byrne
desc "Rcov code coverage reports" task :rcov => "rcov:all" require 'rcov/rcovtask' namespace :rcov do Rcov::RcovTask.new(:all) do task :rcov => "rcov:testunit" end Rcov::RcovTask.new(:testunit) do |t| t.libs << "test" t.output_dir = 'coverage' t.test_files = FileList['test/

[rspec-users] [Cucumber] How Do You Use Cucumber?

2009-02-03 Thread s.ross
I'm using Cucumber on my current project and it's causing me to wonder what other people's experience has been. I've read discussions about speeding up Cucumber and a basically everything else I can. Also, the rSpec book is articulate on the subject. What I'm curious about is whether a surv

[rspec-users] Rcov rake task problems

2009-02-03 Thread James Byrne
OS = MS-WinXPproSP3 / CYGWIN_NT-5.1 1.5.25(0.156/4/2) 2008-06-12 19:34 ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin] rails (2.2.2) rake (0.8.3) rcov (0.8.1.1.0) I am trying to develop a rake task that will aggregate the results for testunit, spec and cucumber tests. However, I find that I c

Re: [rspec-users] [RSpec] rcov and/or rexml bug?

2009-02-03 Thread James Byrne
David Chelimsky wrote: > On Tue, Feb 3, 2009 at 7:32 AM, James Byrne > wrote: >> >> thinking that maybe RSpec 1.1.12, Rails 2.2.2 and perhaps Rcov 0.8.1 >> have some incompatibilities. > > Try spicycode's rcov: > > [sudo] gem install spicycode-rcov --source http://gems.github.com I get the sam

Re: [rspec-users] [RSpec] rcov and/or rexml bug?

2009-02-03 Thread David Chelimsky
On Tue, Feb 3, 2009 at 7:32 AM, James Byrne wrote: > Fernando Perez wrote: >> Hi, >> >> Running: Ruby 1.8.7 p72, RSpec 1.1.12 and rcov 0.8.1.2.0, I get the >> following error message with $ rake spec:rcov > >> >> Anyone ran into that? Should I downgrade my Ruby version to have it >> work? I previo

Re: [rspec-users] undefined method `inherit' for Merb::Test::ExampleGroup

2009-02-03 Thread Phlip
David Chelimsky wrote: Spec::Runner.configure do |c| c.include MyMethods end Tx that was it! ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] [RSpec] rcov and/or rexml bug?

2009-02-03 Thread James Byrne
Fernando Perez wrote: > Hi, > > Running: Ruby 1.8.7 p72, RSpec 1.1.12 and rcov 0.8.1.2.0, I get the > following error message with $ rake spec:rcov > > Anyone ran into that? Should I downgrade my Ruby version to have it > work? I previously updated it to its latest release hoping bugs would be >

Re: [rspec-users] webrat methods are undefined

2009-02-03 Thread Tom Hoen
I was able to download the zip file and lo...the tests ran. Thanks for all your help! Tom -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] [Cucumber] 0.1.99.x parse errors

2009-02-03 Thread aslak hellesoy
Folks, If you encounter parse errors on 0.1.99.x (0.2 prereleases), please do the following: 1) Create a http://gist.github.com/ with the full (but minimal) feature that fails to parse 2) Got to the *raw* view of that gist and comy the URL 3) Paste it into Lighthouse a ticket, and mention what 0.