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
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
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 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
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
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
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
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
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
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
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'
...
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
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
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/
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 ...
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
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
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
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
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
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
21 matches
Mail list logo