Message from discussion
Difference between :each and :all
Received: by 10.224.2.79 with SMTP id 15mr598566qai.2.1296496671884;
Mon, 31 Jan 2011 09:57:51 -0800 (PST)
X-BeenThere: rspec@googlegroups.com
Received: by 10.229.75.218 with SMTP id z26ls1686158qcj.3.p; Mon, 31 Jan 2011
09:57:51 -0800 (PST)
Received: by 10.229.192.69 with SMTP id dp5mr703190qcb.18.1296496671537;
Mon, 31 Jan 2011 09:57:51 -0800 (PST)
Received: by 10.229.192.69 with SMTP id dp5mr703189qcb.18.1296496671483;
Mon, 31 Jan 2011 09:57:51 -0800 (PST)
Return-Path: <rspec-users-boun...@rubyforge.org>
Received: from rubyforge.org (rubyforge.org [205.234.109.19])
by gmr-mx.google.com with ESMTP id o8si3784615qcu.10.2011.01.31.09.57.51;
Mon, 31 Jan 2011 09:57:51 -0800 (PST)
Received-SPF: pass (google.com: domain of rspec-users-boun...@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of rspec-users-boun...@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=rspec-users-boun...@rubyforge.org; dkim=neutral (body hash did not verify) header...@gmail.com
Received: from rubyforge.org (rubyforge.org [127.0.0.1])
by rubyforge.org (Postfix) with ESMTP id 2AB4F1678324;
Mon, 31 Jan 2011 12:57:51 -0500 (EST)
X-Original-To: rspec-us...@rubyforge.org
Delivered-To: rspec-us...@rubyforge.org
Received: from mail-vw0-f50.google.com (mail-vw0-f50.google.com
[209.85.212.50])
by rubyforge.org (Postfix) with ESMTP id 2B40B1858321
for <rspec-us...@rubyforge.org>; Mon, 31 Jan 2011 11:22:44 -0500 (EST)
Received: by vws14 with SMTP id 14so1972722vws.23
for <rspec-us...@rubyforge.org>; Mon, 31 Jan 2011 08:22:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=domainkey-signature:content-type:mime-version:subject:from
:in-reply-to:date:content-transfer-encoding:message-id:references:to
:x-mailer; bh=zFR1RYlZjw7AwvfxBjWbWBHTVmpXJVT19UHXulCrt1A=;
b=cYS/4ZOgoXbISttwRnL7E84GSYQtPRXPJyh6ivz2VYASYAV4FWQMYtneTtrTfzdWcW
pNT0xobJmNKGWQ+NIJMrJ8BxWAAcdwtn7CaE/EiJk2rKj9U58Xe6wznVb/atgZuUzvjW
0ZUBcEV2c3pqJ3vjrrCOuMovV5vHs+ZkfP4zY=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
h=content-type:mime-version:subject:from:in-reply-to:date
:content-transfer-encoding:message-id:references:to:x-mailer;
b=QQaIDxHxcpZp1/WV+cF4zuLP/yoVUzkAuHAEzSzyMOp5dAde/ic/guR61JUD9yxB4T
+LXG9qLpzfZjrjmEw+uMjwmxVsFJ69YGk9iJ7NiR9F8oo4ui9WySnqqxnefkWvE2KkSP
DLiR14cU0QHFRCwZ/0smoW4ZfK9VH51GlfkBk=
Received: by 10.220.191.2 with SMTP id dk2mr1659729vcb.251.1296490568751;
Mon, 31 Jan 2011 08:16:08 -0800 (PST)
Received: from lmp-dchelimsk01.us.drwholdings.com (chml01.drwholdings.com
[76.8.89.6])
by mx.google.com with ESMTPS id n13sm7066809vcr.17.2011.01.31.08.15.59
(version=TLSv1/SSLv3 cipher=RC4-MD5);
Mon, 31 Jan 2011 08:16:00 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v1082)
From: David Chelimsky <dchelim...@gmail.com>
In-Reply-To: <4D4682FC.9080...@gmail.com>
Date: Mon, 31 Jan 2011 10:15:58 -0600
Message-Id: <689A441C-DF97-4A8D-A3C9-947637780...@gmail.com>
References: <288eb1883a023d0b7cc2533368ddc...@ruby-forum.com> <AANLkTim+QxDpW_5h+MhyO_fDTfSFd1tRSYGqziT_h...@mail.gmail.com> <D06C2E03-90C1-4578-9FF5-95A9966C4...@gmail.com> <AANLkTimDpzk5PFLqCTLhLCfLForZvka3n5t-2Xs8=...@mail.gmail.com>
<035B9168-5FD3-4C9B-96F8-2694CD2E1...@me.com>
<4D4682FC.9080...@gmail.com>
To: rspec-users <rspec-us...@rubyforge.org>
X-Mailer: Apple Mail (2.1082)
Subject: Re: [rspec-users] Difference between :each and :all
X-BeenThere: rspec-us...@rubyforge.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: rspec-users <rspec-us...@rubyforge.org>
List-Id: rspec-users <rspec-users.rubyforge.org>
List-Unsubscribe: <http://rubyforge.org/mailman/options/rspec-users>,
<mailto:rspec-users-requ...@rubyforge.org?subject=unsubscribe>
List-Archive: <http://rubyforge.org/pipermail/rspec-users>
List-Post: <mailto:rspec-us...@rubyforge.org>
List-Help: <mailto:rspec-users-requ...@rubyforge.org?subject=help>
List-Subscribe: <http://rubyforge.org/mailman/listinfo/rspec-users>,
<mailto:rspec-users-requ...@rubyforge.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: rspec-users-boun...@rubyforge.org
Errors-To: rspec-users-boun...@rubyforge.org
On Jan 31, 2011, at 3:38 AM, Evgeniy Dolzhenko wrote:
> Btw. there is also before(:suite), and working from there wouldn't it make sense to have
>
> 1. before(:suite)
> 2. before(:group)
> 3. before(:example)
>
> which would reflect the hierarchy of RSpec run (i.e. suite > group > example).
I really, really like this. It maps well to the afters as well, and therefore does not add to confusion the way :any would.
> Anyway likely it's too late to introduce something like this, just my 2 cents, because I'm from
> these folks which were always confused about :each/:all and what is the default, etc. when
> I just started speccing.
I don't think it's too late for this. I'm not convinced to do it yet, but I think this is a solid, clear direction.
More opinions on this?
_______________________________________________
rspec-users mailing list
rspec-us...@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users