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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
%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)
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
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
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 %
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
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-
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
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
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-
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/
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
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
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
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
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
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
>
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
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.
34 matches
Mail list logo