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
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?
> ---
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
>
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
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
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
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
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
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
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
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
Sent from my mobile
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
James McCarthy
http://thewerks.org.uk
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
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
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
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
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
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
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
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
@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
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
___
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
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
_
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
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)
>>
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:
>
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:
>
>
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:
>
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
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
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
>
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
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
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
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
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
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
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
>
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
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.
41 matches
Mail list logo