[rspec-users] (no subject)

2013-08-02 Thread Guirec Corbel
Hi, I realy like to use features spec but I have some questions about the organisation : 1. How should I group the features specs? -- For the moment, I try to group by controllers. For example, I can have a file "users_spec.rb", "artists_sp

Re: [rspec-users] (no subject)

2013-08-02 Thread Guirec Corbel
I forgot to add a title! An administrator can edit it, please? Thanks! 2013/7/16 Guirec Corbel > Hi, > > I realy like to use features spec but I have some questions about the > organisation : > > 1. How should I group the features specs? > ---

Re: [rspec-users] (no subject)

2010-06-07 Thread Matt Wynne
On 7 Jun 2010, at 15:13, Ben Butler-Cole wrote: > Hello. > > I'm trying to use RSpec's mocks to describe code which passes a block to a > collaborator. I want to write an assertion against the value returned by the > block. I can't find any explicit support for this in RSpec, but perhaps I >

[rspec-users] (no subject)

2010-06-07 Thread Ben Butler-Cole
Hello. I'm trying to use RSpec's mocks to describe code which passes a block to a collaborator. I want to write an assertion against the value returned by the block. I can't find any explicit support for this in RSpec, but perhaps I have missed something. I have come up with a hack which almost d

Re: [rspec-users] (no subject)

2009-02-27 Thread Matt Wynne
bloody mailing list lag - three of us answered the same question! On 27 Feb 2009, at 16:46, Matt Wynne wrote: On 27 Feb 2009, at 16:14, Marcus Roberts wrote: Apologies as this feels like an FAQ, but the only answer I can find refers to a bug in a much earlier version of rspec, and this fee

Re: [rspec-users] (no subject)

2009-02-27 Thread Matt Wynne
On 27 Feb 2009, at 16:14, Marcus Roberts wrote: Apologies as this feels like an FAQ, but the only answer I can find refers to a bug in a much earlier version of rspec, and this feels like a common thing to do, so I suspect we're doing something stupid. The issue seems to be that if we mock

Re: [rspec-users] (no subject)

2009-02-27 Thread Pat Maddox
On Fri, Feb 27, 2009 at 8:14 AM, Marcus Roberts wrote: > Apologies as this feels like an FAQ, but the only answer I can find refers > to a bug in a much earlier version of rspec, and this feels like a common > thing to do, so I suspect we're doing something stupid. > > The issue seems to be that i

Re: [rspec-users] (no subject)

2009-02-27 Thread David Chelimsky
On Fri, Feb 27, 2009 at 10:14 AM, Marcus Roberts wrote: > Apologies as this feels like an FAQ, but the only answer I can find refers > to a bug in a much earlier version of rspec, and this feels like a common > thing to do, so I suspect we're doing something stupid. > > The issue seems to be that

[rspec-users] (no subject)

2009-02-27 Thread Marcus Roberts
Apologies as this feels like an FAQ, but the only answer I can find refers to a bug in a much earlier version of rspec, and this feels like a common thing to do, so I suspect we're doing something stupid. The issue seems to be that if we mock a class, that mock carries between specs when runnin

[rspec-users] (no subject)

2009-02-10 Thread Randy Harmon
I'm encountering an interesting symptom during example execution. I'm making a shared example group that dries up belongs-to-me before_filter testing, and it makes a callback to the example group that says it_should_behave_like that. The callback tells the shared example where to expect a red

Re: [rspec-users] (no subject)

2008-07-03 Thread Mikel Lindsaar
On Thu, Jul 3, 2008 at 10:22 PM, Joseph Leddy <[EMAIL PROTECTED]> wrote: > > > Sent from my mobile I assume this is a pending spec? :) -- http://lindsaar.net/ Rails, RSpec, Puppet and Life blog ___ rspec-users mailing list rspec-users@rubyforge.or

[rspec-users] (no subject)

2008-07-03 Thread Joseph Leddy
Sent from my mobile ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] (no subject)

2008-04-24 Thread James McCarthy
James McCarthy http://thewerks.org.uk ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] (no subject)

2008-01-30 Thread Corey Haines
Yeah, I thought that lambdas supported closures, so they hold their state and you can pass it around. -Corey On Jan 29, 2008 11:55 PM, Pat Maddox <[EMAIL PROTECTED]> wrote: > On Jan 29, 2008 8:48 PM, James B. Byrne <[EMAIL PROTECTED]> wrote: > > Message-ID:<[EMAIL PROTECTED]> > > > > On: Tue, 29

Re: [rspec-users] (no subject)

2008-01-29 Thread Pat Maddox
On Jan 29, 2008 8:48 PM, James B. Byrne <[EMAIL PROTECTED]> wrote: > Message-ID:<[EMAIL PROTECTED]> > > On: Tue, 29 Jan 2008 20:47:41 -0500, "Andrew WC Brown" <[EMAIL PROTECTED]> > wrote: > > > I've seen lambda before but not sure what it does. > > A lambda is a fancy name for an anonymous or unbou

[rspec-users] (no subject)

2008-01-29 Thread James B. Byrne
Message-ID:<[EMAIL PROTECTED]> On: Tue, 29 Jan 2008 20:47:41 -0500, "Andrew WC Brown" <[EMAIL PROTECTED]> wrote: > I've seen lambda before but not sure what it does. A lambda is a fancy name for an anonymous or unbound function. Its significance comes from the fact that it is completely statele

Re: [rspec-users] (no subject) - rspec not running

2007-10-16 Thread Steven Garcia
Ahh I didnt know I had to run that again after upgrading. I am getting a different error now..seems like its more of a Rails issue though: /Sites/test_appvendor/rails/railties/lib/../../activesupport/lib/active_support/dependencies.rb:266:in `load_missing_constant': uninitialized constant Act

Re: [rspec-users] (no subject) - rspec not running

2007-10-16 Thread David Chelimsky
On 10/16/07, Steven Garcia <[EMAIL PROTECTED]> wrote: > I just unfroze my app and am getting the same error. > > Gonna reinstall a stable rspec to make sure that the trunk is really the > issue Try script/generate rspec first :) ___ rspec-users mailing l

Re: [rspec-users] (no subject) - rspec not running

2007-10-16 Thread David Chelimsky
On 10/16/07, Steven Garcia <[EMAIL PROTECTED]> wrote: > @post.should_be more_specific > > script/spec:4:in `run': wrong number of arguments (5 for 1) > (ArgumentError) http://rspec.rubyforge.org/documentation/rails/install.html script/generate rspec You need to do that every time you update vend

Re: [rspec-users] (no subject) - rspec not running

2007-10-16 Thread Steven Garcia
I just unfroze my app and am getting the same error. Gonna reinstall a stable rspec to make sure that the trunk is really the issue -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/ma

Re: [rspec-users] (no subject) - rspec not running

2007-10-16 Thread Steven Garcia
@post.should_be more_specific script/spec:4:in `run': wrong number of arguments (5 for 1) (ArgumentError) -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] (no subject) - rspec not running

2007-10-16 Thread David Chelimsky
On 10/16/07, Steven Garcia <[EMAIL PROTECTED]> wrote: > I am getting this same error when I run autotest. There are a few errors cited in this thread. Which one do you mean? > > My system specs > > Rails v7945 > Rspec Version 1.1.0 (in SVN) > OS 10.4.10 ___

Re: [rspec-users] (no subject) - rspec not running

2007-10-16 Thread Steven Garcia
I am getting this same error when I run autotest. My system specs Rails v7945 Rspec Version 1.1.0 (in SVN) OS 10.4.10 -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo

Re: [rspec-users] (no subject) - rspec not running

2007-10-08 Thread Tom Stuart
On 8 Oct 2007, at 18:29, David Chelimsky wrote: > What you can do to eliminate this is go to > vendor/plugins/rspec/lib/spec.rb and remove the following lines (at > the end): Great, thanks very much -- this is more than good enough for now. (It works fine.) Cheers, -Tom _

Re: [rspec-users] (no subject) - rspec not running

2007-10-08 Thread David Chelimsky
On 10/8/07, Tom Stuart <[EMAIL PROTECTED]> wrote: > On 8 Oct 2007, at 17:26, David Chelimsky wrote: > > On Oct 8, 2007, at 11:14 AM, Scott Taylor wrote: > >> escher: ./script/spec spec/models/item_spec.rb > >> > >> Finished in 8.0e-06 seconds > >> > >> 0 examples, 0 failures > >> ./script/spec:4:in

Re: [rspec-users] (no subject) - rspec not running

2007-10-08 Thread Tom Stuart
On 8 Oct 2007, at 17:26, David Chelimsky wrote: > On Oct 8, 2007, at 11:14 AM, Scott Taylor wrote: >> escher: ./script/spec spec/models/item_spec.rb >> >> Finished in 8.0e-06 seconds >> >> 0 examples, 0 failures >> ./script/spec:4:in `run': wrong number of arguments (3 for 1) >> (ArgumentError) >>

Re: [rspec-users] (no subject) - rspec not running

2007-10-08 Thread David Chelimsky
On 10/8/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > On 10/8/07, Scott Taylor <[EMAIL PROTECTED]> wrote: > > > > On Oct 8, 2007, at 11:38 AM, David Chelimsky wrote: > > > > > On 10/8/07, Scott Taylor <[EMAIL PROTECTED]> wrote: > > >> > > >> On Oct 8, 2007, at 11:21 AM, David Chelimsky wrote: >

Re: [rspec-users] (no subject) - rspec not running

2007-10-08 Thread David Chelimsky
On 10/8/07, Scott Taylor <[EMAIL PROTECTED]> wrote: > > On Oct 8, 2007, at 11:38 AM, David Chelimsky wrote: > > > On 10/8/07, Scott Taylor <[EMAIL PROTECTED]> wrote: > >> > >> On Oct 8, 2007, at 11:21 AM, David Chelimsky wrote: > >> > >>> On 10/8/07, Scott Taylor <[EMAIL PROTECTED]> wrote: > >

Re: [rspec-users] (no subject) - rspec not running

2007-10-08 Thread Scott Taylor
On Oct 8, 2007, at 11:38 AM, David Chelimsky wrote: > On 10/8/07, Scott Taylor <[EMAIL PROTECTED]> wrote: >> >> On Oct 8, 2007, at 11:21 AM, David Chelimsky wrote: >> >>> On 10/8/07, Scott Taylor <[EMAIL PROTECTED]> wrote: On Oct 8, 2007, at 11:14 AM, Scott Taylor wrote: >

Re: [rspec-users] (no subject) - rspec not running

2007-10-08 Thread David Chelimsky
On 10/8/07, Scott Taylor <[EMAIL PROTECTED]> wrote: > > On Oct 8, 2007, at 11:21 AM, David Chelimsky wrote: > > > On 10/8/07, Scott Taylor <[EMAIL PROTECTED]> wrote: > >> > >> On Oct 8, 2007, at 11:14 AM, Scott Taylor wrote: > >> > >>> > >>> Just ran svn up this morning, and got this (after running

Re: [rspec-users] (no subject) - rspec not running

2007-10-08 Thread Scott Taylor
On Oct 8, 2007, at 11:21 AM, David Chelimsky wrote: > On 10/8/07, Scott Taylor <[EMAIL PROTECTED]> wrote: >> >> On Oct 8, 2007, at 11:14 AM, Scott Taylor wrote: >> >>> >>> Just ran svn up this morning, and got this (after running ./script/ >>> generate rspec) >>> >>> escher: ./script/spec spec/mo

Re: [rspec-users] (no subject) - rspec not running

2007-10-08 Thread David Chelimsky
On 10/8/07, Scott Taylor <[EMAIL PROTECTED]> wrote: > > On Oct 8, 2007, at 11:14 AM, Scott Taylor wrote: > > > > > Just ran svn up this morning, and got this (after running ./script/ > > generate rspec) > > > > escher: ./script/spec spec/models/item_spec.rb > > > > > > Finished in 8.0e-06 seconds >

Re: [rspec-users] (no subject) - rspec not running

2007-10-08 Thread Scott Taylor
On Oct 8, 2007, at 11:14 AM, Scott Taylor wrote: > > Just ran svn up this morning, and got this (after running ./script/ > generate rspec) > > escher: ./script/spec spec/models/item_spec.rb > > > Finished in 8.0e-06 seconds > > 0 examples, 0 failures > ./script/spec:4:in `run': wrong number of ar

[rspec-users] (no subject)

2007-10-08 Thread Scott Taylor
Just ran svn up this morning, and got this (after running ./script/ generate rspec) escher: ./script/spec spec/models/item_spec.rb Finished in 8.0e-06 seconds 0 examples, 0 failures ./script/spec:4:in `run': wrong number of arguments (3 for 1) (ArgumentError) from ./script/spec:4

[rspec-users] (no subject)

2007-10-08 Thread Scott Taylor
Just ran svn up this morning, and got this (after running ./script/ generate rspec) escher: ./script/spec spec/models/item_spec.rb Finished in 8.0e-06 seconds 0 examples, 0 failures ./script/spec:4:in `run': wrong number of arguments (3 for 1) (ArgumentError) from ./script/spec:4

Re: [rspec-users] (no subject)

2007-08-14 Thread Scott Taylor
On Aug 14, 2007, at 5:53 PM, Scott Taylor wrote: > > On Aug 14, 2007, at 5:17 PM, aslak hellesoy wrote: > >> On 8/14/07, Scott Taylor <[EMAIL PROTECTED]> wrote: >>> >>> How would you spec out something like the following: >>> >> >> You're starting with the code, trying to tape on the spec afterwa

Re: [rspec-users] (no subject)

2007-08-14 Thread Scott Taylor
On Aug 14, 2007, at 5:17 PM, aslak hellesoy wrote: > On 8/14/07, Scott Taylor <[EMAIL PROTECTED]> wrote: >> >> How would you spec out something like the following: >> > > You're starting with the code, trying to tape on the spec afterwards. > This is always a difficult task and is exactly what BD

Re: [rspec-users] (no subject)

2007-08-14 Thread aslak hellesoy
On 8/14/07, Scott Taylor <[EMAIL PROTECTED]> wrote: > > How would you spec out something like the following: > You're starting with the code, trying to tape on the spec afterwards. This is always a difficult task and is exactly what BDD and RSpec is trying to get you away from. Have you tried wri

Re: [rspec-users] (no subject)

2007-08-14 Thread rupert
On 14/8/07 21:30, "Scott Taylor" <[EMAIL PROTECTED]> wrote: > How would you spec out something like the following: > > def a_method >x = Class.new do > include Enumerable >end > ># do something here with x > end > > > describe "The Anonymous Class" do > >before :each do >

[rspec-users] (no subject)

2007-08-14 Thread Scott Taylor
How would you spec out something like the following: def a_method x = Class.new do include Enumerable end # do something here with x end describe "The Anonymous Class" do before :each do @anonymous_class = mock Class Class.stub!(:new).and_return @anonymous_class

[rspec-users] (no subject)

2007-08-10 Thread barsalou
Scott said: >> I'd like to output my rcov data to the screen in ascii instead of >> html...is that possible using the rake spec:rcov command? > Look at the RSpec gem's rdoc. I believe it is something like > Rake::RcovTask. An option can be provided to give rcov options. Run > rcov --help.