Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Am I on the right track

Received: by 10.50.41.132 with SMTP id f4mr25833igl.1.1351942156810;
        Sat, 03 Nov 2012 04:29:16 -0700 (PDT)
X-BeenThere: cukes@googlegroups.com
Received: by 10.50.140.40 with SMTP id rd8ls5555353igb.2.canary; Sat, 03 Nov
 2012 04:29:14 -0700 (PDT)
Received: by 10.50.153.230 with SMTP id vj6mr3213899igb.3.1351942154737;
        Sat, 03 Nov 2012 04:29:14 -0700 (PDT)
Received: by 10.50.153.230 with SMTP id vj6mr3213898igb.3.1351942154717;
        Sat, 03 Nov 2012 04:29:14 -0700 (PDT)
Return-Path: <vice...@gmail.com>
Received: from mail-ob0-f179.google.com (mail-ob0-f179.google.com [209.85.214.179])
        by gmr-mx.google.com with ESMTPS id wu4si235320igb.3.2012.11.03.04.29.14
        (version=TLSv1/SSLv3 cipher=OTHER);
        Sat, 03 Nov 2012 04:29:14 -0700 (PDT)
Received-SPF: pass (google.com: domain of vice...@gmail.com designates 209.85.214.179 as permitted sender) client-ip=209.85.214.179;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vice...@gmail.com designates 209.85.214.179 as permitted sender) smtp.mail=vice...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-ob0-f179.google.com with SMTP id lz20so3896245obb.10
        for <cukes@googlegroups.com>; Sat, 03 Nov 2012 04:29:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :content-type;
        bh=rEipxHKaAcLRaHKlqQgi7EuFyprEQFlXBP/Rerl0R2E=;
        b=lqbHgplMsxJgFDstJdtoRkrqTG9ibhWjsmIaBw50+qMJ+2uQWpylrYxjVv657o7KSF
         W+k5kJhJeeMJnKhGi8YsW2p1hf1T4EQb/v3879Ijlx+sL2GdsIAmo6jBFEiPfmTI03CV
         O3TbIkN57TzcY3pVzi4xv7CiqpYq91hBkFV+hpkURhIVDXw6EIKRZhGWbAgiOoCUVpdf
         B6W/Doq0+K7moo0+kc3wNNTKIK5YPV9jQpcSPeEw53IGSEytWV8qn9zBbU0lMRmDBMJT
         /RVTJcp6LUpoZRbt2gLKsoGDtEbdEzxi9YrvVipkEqkRuXHgfJ+zLZtXYcdnJQxmxEus
         fpdw==
Received: by 10.182.89.42 with SMTP id bl10mr3579019obb.27.1351942154345; Sat,
 03 Nov 2012 04:29:14 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.76.154.68 with HTTP; Sat, 3 Nov 2012 04:28:54 -0700 (PDT)
In-Reply-To: <SNT118-W22BCEA379B2BCF15B09D9DAE...@phx.gbl>
References: <6625f9a7-52d8-4fd5-a63e-ea6db58b7bde@googlegroups.com>
 <CAKDF_QT-UWqErAMev7oZ=9ro-kZ-LRROj=X6grzKVRK42t=...@mail.gmail.com>
 <b9ea7949-f3d1-4895-afff-bb4f2ebeb2f6@googlegroups.com> <50941D51.3020...@iDIAcomputing.com>
 <be3fbef1-d16f-4bb7-b86f-6170551b07dd@googlegroups.com> <6bd791c0-3f0c-4509-83c4-ed56b3f60ef8@googlegroups.com>
 <A2ECD54D-8962-42BD-8653-9E8283493...@gmail.com> <SNT118-W22BCEA379B2BCF15B09D9DAE...@phx.gbl>
From: Vicenzo Naves <vice...@gmail.com>
Date: Sat, 3 Nov 2012 09:28:54 -0200
Message-ID: <CA+GSgZBbXwbOeQWD8T9tqhreLsPd4CV2WaZzsFVzcnr9KVr...@mail.gmail.com>
Subject: Re: [Cucumber] Am I on the right track
To: "cukes@googlegroups.com" <cukes@googlegroups.com>
Content-Type: multipart/alternative; boundary=f46d04479f3ddddd5f04cd958f87

--f46d04479f3ddddd5f04cd958f87
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

How your step def looks like?
You are trying to reach a record with 2 arguments where you dont need any.


It's look like this :

class User < ActiveRecord::Base
attr_accessible :name, :password
def initialize
@name =3D name
@password =3D password
end
end

Given /^a user "(.*?)" exists$/ do |user_name|
@user =3D User.create!(:name =3D> user_name, :password =3D> "s3cr3t")
end

When /^he logs in$/ do
visit("/users/sign_in")
fill_in('User name', :with =3D> @user.name)
fill_in('Password', :with =3D> @user.password)
click_button('Log in')
end

Then /^he should see "(.*?)"$/ do
pending # express the regexp above with the code you wish you had
end

When /^he logs in with a bad password$/ do
pending # express the regexp above with the code you wish you had
end

Then /^he should not see "(.*?)"$/ do |arg1|
pending # express the regexp above with the code you wish you had
end

Then the problem is with the model.
I believe you are using RoR.

The model is created with scaffolding, they have the basic for what you
want.

The thing is, you have to have the controller for be able to access it.

def create
  User.new(:params)
end

something like that...



On Sat, Nov 3, 2012 at 9:24 AM, Roelof Wobben <rwob...@hotmail.com> wrote:

>
>  Hello,
>
> My steps definition looks like this :
>
>
>
> ------------------------------
> Subject: Re: [Cucumber] Am I on the right track
> From: vice...@gmail.com
> Date: Sat, 3 Nov 2012 09:05:28 -0200
> To: cukes@googlegroups.com
>
>
>
>
> Vicenzo Naves
>
> Sent from my iPhone
> +55 (31)9996-6915
>
> On 03/11/2012, at 07:07, roelof <rwob...@hotmail.com> wrote:
>
> I solved this one with chancing the class definition to this :
>
> class User < ActiveRecord::Base
>   attr_accessible :name, :password
>
>   def initialize
>     @name =3D name
>     @password =3D password
>   end
>
> end
>
> But now I see this message:
>
> Given a user "Aslak" exists         #
> features/step_definitions/login_steps.rb:10
>       wrong number of arguments (2 for 0) (ArgumentError)
>       ./features/step_definitions/login_steps.rb:4:in `initialize'
>       ./features/step_definitions/login_steps.rb:11:in `/^a user "(.*?)"
> exists$/'
>       features/login.feature:4:in `Given a user "Aslak" exists'
>
>
> Roelof
>
> How your step def looks like?
> You are trying to reach a record with 2 arguments where you dont need any=
.
>
>
> It's look like this :
>
> class User < ActiveRecord::Base
> attr_accessible :name, :password
>  def initialize
> @name =3D name
> @password =3D password
> end
>  end
>
> Given /^a user "(.*?)" exists$/ do |user_name|
> @user =3D User.create!(:name =3D> user_name, :password =3D> "s3cr3t")
> end
>
> When /^he logs in$/ do
> visit("/users/sign_in")
> fill_in('User name', :with =3D> @user.name)
>  fill_in('Password', :with =3D> @user.password)
> click_button('Log in')
> end
>
> Then /^he should see "(.*?)"$/ do
> pending # express the regexp above with the code you wish you had
> end
>
> When /^he logs in with a bad password$/ do
> pending # express the regexp above with the code you wish you had
> end
>
> Then /^he should not see "(.*?)"$/ do |arg1|
> pending # express the regexp above with the code you wish you had
> end
>
>
> Roelof
>
>
> Op zaterdag 3 november 2012 09:09:27 UTC+1 schreef roelof het volgende:
>
> Thanks,
>
> I now get this message:
>
> Scenario: log in as existing user     # features/login.feature:3
>     Given a user "Aslak" exists         # features/step_definitions/**
> login_steps.rb:5
>       unknown attribute: name (ActiveRecord::**UnknownAttributeError)
>       ./features/step_definitions/**login_steps.rb:6:in `/^a user "(.*?)"
> exists$/'
>       features/login.feature:4:in `Given a user "Aslak" exists'
>
> Must I now write my spec files or must I change something in my
> step-defenitions to solve this problem.
>
> Roelof
>
>
> Op vrijdag 2 november 2012 20:21:58 UTC+1 schreef George Dinwiddie het
> volgende:
>
> Roelof,
>
> On 11/2/12 2:30 PM, roelof wrote:
> > One thing I don't understand. Why create a new user ?
> > In my opinion a existing user is a user which is already in the databas=
e
> > and in the user model so a existing user is already created.
>
> You have never initialized the @user variable. Since it's nil, you can't
> call any methods on it.
>
>   - George
>
> P.S. Please use interleaved answers
>       http://en.wikipedia.org/wiki/**Posting_style#Interleaved_**style<ht=
tp://en.wikipedia.org/wiki/Posting_style#Interleaved_style>
>
> >
> > Roelof
> >
> > Op vrijdag 2 november 2012 18:20:18 UTC+1 schreef Aslak Helles=F8y het
> > volgende:
> >
> >
> >
> >
> >     On Fri, Nov 2, 2012 at 3:44 PM, roelof <rwo...@hotmail.com
> >     <javascript:>> wrote:
> >
> >         Hello,
> >
> >         I making my first BDD site which you can find here :
> >         https://github.com/roelof1967/**tamara<https://github.com/roelo=
f1967/tamara>
> >         <https://github.com/**roelof1967/tamara<https://github.com/roel=
of1967/tamara>>
>
> >         Now the first test is failing with this message :
> >
> >
> >     See https://github.com/roelof1967/**tamara/pull/1<https://github.co=
m/roelof1967/tamara/pull/1>
> >     <https://github.com/**roelof1967/tamara/pull/1<https://github.com/r=
oelof1967/tamara/pull/1>>
>
> >
> >     The comment in snippets is there for a reason (pending# express the
> >     regexp above with the code you wish you had)
> >
> >     Instead of leaving the Given stepdef blank you should have written
> >     some code here. Since you didn't you got confused at a later stage =
-
> >     in the When step.
> >
> >         Given a user "Aslak" exists         #
> >         features/step_definitions/**login_steps.rb:1
> >              When he logs in                     #
> >         features/step_definitions/**login_steps.rb:4
> >                undefined method `[]' for nil:NilClass (NoMethodError)
> >                ./features/step_definitions/**login_steps.rb:5:in `/^he
> >         logs in$/'
> >                features/login.feature:5:in `When he logs in'
> >
> >
> >         Is this because I use @user.name <http://user.name> or do I
> >         don't see the right reason ?
> >
> >         Roelof
>
> --
>   ------------------------------**------------------------------**-------=
---
>
>    * George Dinwiddie *                      http://blog.gdinwiddie.com
>    Software Development                    http://www.idiacomputing.com
>    Consultant and Coach                    http://www.agilemaryland.org
>   ------------------------------**------------------------------**-------=
---
>
>
>
> --
> -- Rules --
>
> 1) Please prefix the subject with [Ruby], [JVM] or [JS].
> 2) Please use interleaved answers
> http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
> 3) If you have a question, don't reply to an existing message. Start a ne=
w
> topic instead.
>
> You received this message because you are subscribed to the Google Groups
> Cukes group. To post to this group, send email to cukes@googlegroups.com.
> To unsubscribe from this group, send email to
> cukes+unsubscribe@googlegroups.com. For more options, visit this group at
> https://groups.google.com/d/forum/cukes?hl=3Den
>
>
>
>
> --
> -- Rules --
>
> 1) Please prefix the subject with [Ruby], [JVM] or [JS].
> 2) Please use interleaved answers
> http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
> 3) If you have a question, don't reply to an existing message. Start a ne=
w
> topic instead.
>
> You received this message because you are subscribed to the Google Groups
> Cukes group. To post to this group, send email to cukes@googlegroups.com.
> To unsubscribe from this group, send email to
> cukes+unsubscribe@googlegroups.com. For more options, visit this group at
> https://groups.google.com/d/forum/cukes?hl=3Den
>
>
>
> --
> -- Rules --
>
> 1) Please prefix the subject with [Ruby], [JVM] or [JS].
> 2) Please use interleaved answers
> http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
> 3) If you have a question, don't reply to an existing message. Start a ne=
w
> topic instead.
>
> You received this message because you are subscribed to the Google Groups
> Cukes group. To post to this group, send email to cukes@googlegroups.com.
> To unsubscribe from this group, send email to
> cukes+unsubscribe@googlegroups.com. For more options, visit this group at
> https://groups.google.com/d/forum/cukes?hl=3Den
>
>
>



--=20
Vicenzo Naves
ISTQB CTFL Certified
Analista de Testes
(31) 9996-6915
www.geekcuisine.com.br

--f46d04479f3ddddd5f04cd958f87
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div class=3D"im" style=3D"font-family:arial,sans-serif;font-size:13px">How=
 your step def looks like?</div><div style=3D"font-family:arial,sans-serif;=
font-size:13px"><div class=3D"im">You are trying to reach a record with 2 a=
rguments where you dont need any.</div>

<blockquote><div>=A0</div><div>It&#39;s look like this :</div><div>=A0</div=
><div><div class=3D"im"><div>class=A0User=A0&lt;=A0ActiveRecord::Base</div>=
<div>attr_accessible=A0:name,=A0:password</div><div></div><div>def=A0initia=
lize</div><div>

@name=A0=3D=A0name</div><div>@password=A0=3D=A0password</div><div>end</div>=
<div></div><div>end</div><div><br></div></div><div>Given=A0/^a user &quot;(=
.*?)&quot; exists$/=A0do=A0|user_name|</div><div>@user=A0=3D=A0User.create!=
(:name=A0=3D&gt;=A0user_name,=A0:password=A0=3D&gt;=A0&quot;s3cr3t&quot;)</=
div>

<div>end</div><div><br></div><div>When=A0/^he logs in$/=A0do</div><div>visi=
t(&quot;/users/sign_in&quot;)</div><div>fill_in(&#39;User name&#39;,=A0:wit=
h=A0=3D&gt;=A0@<a href=3D"http://user.name">user.name</a>)</div><div>fill_i=
n(&#39;Password&#39;,=A0:with=A0=3D&gt;=...@user.password)</div>

<div>click_button(&#39;Log in&#39;)</div><div>end</div><div><br></div><div>=
Then=A0/^he should see &quot;(.*?)&quot;$/=A0do</div><div>pending=A0# expre=
ss the regexp above with the code you wish you had</div><div>end</div><div>=
<br>

</div><div>When=A0/^he logs in with a bad password$/=A0do</div><div>pending=
=A0# express the regexp above with the code you wish you had</div><div>end<=
/div><div><br></div><div>Then=A0/^he should not see &quot;(.*?)&quot;$/=A0d=
o=A0|arg1|</div>

<div>pending=A0# express the regexp above with the code you wish you had</d=
iv><div>end</div><div>=A0</div></div><div>Then the problem is with the mode=
l.</div><div>I believe you are using RoR.</div><div><br></div><div>The mode=
l is created with scaffolding, they have the basic for what you want.</div>

<div><br></div><div>The thing is, you have to have the controller for be ab=
le to access it.</div><div><br></div><div>def create</div><div>=A0 User.new=
(:params)</div><div>end</div><div><br></div><div>something like that...</di=
v>

<div><br></div></blockquote></div><div class=3D"gmail_extra"><br><br><div c=
lass=3D"gmail_quote">On Sat, Nov 3, 2012 at 9:24 AM, Roelof Wobben <span di=
r=3D"ltr">&lt;<a href=3D"mailto:rwob...@hotmail.com" target=3D"_blank">rwob=
b...@hotmail.com</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">


<div><div dir=3D"ltr">
<br>=A0Hello, <br>=A0<br>My steps definition looks like this : <br>=A0<br>=
=A0<br><div><div>=A0</div><hr>Subject: Re: [Cucumber] Am I on the right tra=
ck<br>From: <a href=3D"mailto:vice...@gmail.com" target=3D"_blank">vicenzo@=
gmail.com</a><br>

Date: Sat, 3 Nov 2012 09:05:28 -0200<br>To: <a href=3D"mailto:cukes@googleg=
roups.com" target=3D"_blank">cukes@googlegroups.com</a><div class=3D"im"><b=
r><br><div><br><br><div>Vicenzo Naves</div><div><br></div>Sent from my iPho=
ne<div>

<a href=3D"tel:%2B55%20%2831%299996-6915" value=3D"+553199966915" target=3D=
"_blank">+55 (31)9996-6915</a></div></div><div><br>On 03/11/2012, at 07:07,=
 roelof &lt;<a href=3D"mailto:rwob...@hotmail.com" target=3D"_blank">rwobbe=
n...@hotmail.com</a>&gt; wrote:<br>

<br></div><blockquote><div>I solved this one with chancing the class defini=
tion to this :<br><br>class User &lt; ActiveRecord::Base<br>=A0 attr_access=
ible :name, :password<br>=A0 <br>=A0 def initialize <br>=A0=A0=A0 @name =3D=
 name<br>
=A0=A0=A0 @password =3D password<br>
=A0 end<br>=A0 <br>end<br><br>But now I see this message:<br><br>Given a us=
er &quot;Aslak&quot; exists=A0=A0=A0=A0=A0=A0=A0=A0 # features/step_definit=
ions/login_steps.rb:10<br>=A0=A0=A0=A0=A0 wrong number of arguments (2 for =
0) (ArgumentError)<br>=A0=A0=A0=A0=A0 ./features/step_definitions/login_ste=
ps.rb:4:in `initialize&#39;<br>

=A0=A0=A0=A0=A0 ./features/step_definitions/login_steps.rb:11:in `/^a user =
&quot;(.*?)&quot; exists$/&#39;<br>=A0=A0=A0=A0=A0 features/login.feature:4=
:in `Given a user &quot;Aslak&quot; exists&#39;<br><br><br>Roelof<br><br></=
div></blockquote>

How your step def looks like?</div><div><div class=3D"im">You are trying to=
 reach a record with 2 arguments where you dont need any.</div><blockquote>=
<div>=A0</div><div>It&#39;s look like this :</div><div>=A0</div><div><div c=
lass=3D"im">

<div><span>class</span> <span>User</span> <span>&lt;</span> <span>ActiveRec=
ord</span><span>::</span><span>Base</span></div><div>  <span>attr_accessibl=
e</span> <span>:name</span><span>,</span> <span>:password</span></div>
<div>
  </div><div>  <span>def</span> <span>initialize</span> </div><div>    <spa=
n>@name</span> <span>=3D</span> <span>name</span></div><div>    <span>@pass=
word</span> <span>=3D</span> <span>password</span></div><div>  <span>end</s=
pan></div>

<div>  </div><div><span>end</span></div><div><br></div></div><div><span>Giv=
en</span> <span>/^a user &quot;(.*?)&quot; exists$/</span> <span>do</span> =
<span>|</span><span>user_name</span><span>|</span></div><div>  <span>@user<=
/span> <span>=3D</span> <span>User</span><span>.</span><span>create!</span>=
<span>(</span><span>:name</span> <span>=3D&gt;</span> <span>user_name</span=
><span>,</span> <span>:password</span> <span>=3D&gt;</span> <span>&quot;s3c=
r3t&quot;</span><span>)</span></div>

<div><span>end</span></div><div><br></div><div><span>When</span> <span>/^he=
 logs in$/</span> <span>do</span></div><div>  <span>visit</span><span>(</sp=
an><span>&quot;/users/sign_in&quot;</span><span>)</span></div><div>  <span>=
fill_in</span><span>(</span><span>&#39;User name&#39;</span><span>,</span> =
<span>:with</span> <span>=3D&gt;</span> <span>@user</span><span>.</span><sp=
an>name</span><span>)</span></div>

<div>  <span>fill_in</span><span>(</span><span>&#39;Password&#39;</span><sp=
an>,</span> <span>:with</span> <span>=3D&gt;</span> <span>@user</span><span=
>.</span><span>password</span><span>)</span></div><div>  <span>click_button=
</span><span>(</span><span>&#39;Log in&#39;</span><span>)</span></div>

<div><span>end</span></div><div><br></div><div><span>Then</span> <span>/^he=
 should see &quot;(.*?)&quot;$/</span> <span>do</span></div><div>  <span>pe=
nding</span> <span># express the regexp above with the code you wish you ha=
d</span></div>

<div><span>end</span></div><div><br></div><div><span>When</span> <span>/^he=
 logs in with a bad password$/</span> <span>do</span></div><div>  <span>pen=
ding</span> <span># express the regexp above with the code you wish you had=
</span></div>

<div><span>end</span></div><div><br></div><div><span>Then</span> <span>/^he=
 should not see &quot;(.*?)&quot;$/</span> <span>do</span> <span>|</span><s=
pan>arg1</span><span>|</span></div><div>  <span>pending</span> <span># expr=
ess the regexp above with the code you wish you had</span></div>

<div><span>end</span></div><div>=A0</div><div>=A0</div><div>Roelof</div><di=
v><div class=3D"h5"><div><br><br>Op zaterdag 3 november 2012 09:09:27 UTC+1=
 schreef roelof het volgende:</div></div></div></div><div><div class=3D"h5"=
><div>

<blockquote style=3D"padding-left:1ex;margin-left:0.8ex;border-left-color:r=
gb(204,204,204);border-left-width:1px;border-left-style:solid">Thanks, <br>=
<br>I now get this message:<br><br>Scenario: log in as existing user=A0=A0=
=A0=A0 # features/login.feature:3<br>

=A0=A0=A0 Given a user &quot;Aslak&quot; exists=A0=A0=A0=A0=A0=A0=A0=A0 # f=
eatures/step_definitions/<u></u>login_steps.rb:5<br>=A0=A0=A0=A0=A0 unknown=
 attribute: name (ActiveRecord::<u></u>UnknownAttributeError)<br>=A0=A0=A0=
=A0=A0 ./features/step_definitions/<u></u>login_steps.rb:6:in `/^a user &qu=
ot;(.*?)&quot; exists$/&#39;<br>

=A0=A0=A0=A0=A0 features/login.feature:4:in `Given a user &quot;Aslak&quot;=
 exists&#39;<br><br>Must I now write my spec files or must I change somethi=
ng in my step-defenitions to solve this problem.<br><br>Roelof<br><br><br>O=
p vrijdag 2 november 2012 20:21:58 UTC+1 schreef George Dinwiddie het volge=
nde:<blockquote style=3D"padding-left:1ex;margin-left:0.8ex;border-left-col=
or:rgb(204,204,204);border-left-width:1px;border-left-style:solid">

Roelof,
<br>
<br>On 11/2/12 2:30 PM, roelof wrote:
<br>&gt; One thing I don&#39;t understand. Why create a new user ?
<br>&gt; In my opinion a existing user is a user which is already in the da=
tabase
<br>&gt; and in the user model so a existing user is already created.
<br>
<br>You have never initialized the @user variable. Since it&#39;s nil, you =
can&#39;t=20
<br>call any methods on it.
<br>
<br>=A0 - George
<br>
<br>P.S. Please use interleaved answers
<br>=A0 =A0 =A0 <a href=3D"http://en.wikipedia.org/wiki/Posting_style#Inter=
leaved_style" target=3D"_blank">http://en.wikipedia.org/wiki/<u></u>Posting=
_style#Interleaved_<u></u>style</a>
<br>
<br>&gt;
<br>&gt; Roelof
<br>&gt;
<br>&gt; Op vrijdag 2 november 2012 18:20:18 UTC+1 schreef Aslak Helles=F8y=
 het
<br>&gt; volgende:
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt; =A0 =A0 On Fri, Nov 2, 2012 at 3:44 PM, roelof &lt;<a>rwo...@hotma=
il.com</a>
<br>&gt; =A0 =A0 &lt;javascript:&gt;&gt; wrote:
<br>&gt;
<br>&gt; =A0 =A0 =A0 =A0 Hello,
<br>&gt;
<br>&gt; =A0 =A0 =A0 =A0 I making my first BDD site which you can find here=
 :
<br>&gt; =A0 =A0 =A0 =A0 <a href=3D"https://github.com/roelof1967/tamara" t=
arget=3D"_blank">https://github.com/roelof1967/<u></u>tamara</a>
<br>&gt; =A0 =A0 =A0 =A0 &lt;<a href=3D"https://github.com/roelof1967/tamar=
a" target=3D"_blank">https://github.com/<u></u>roelof1967/tamara</a>&gt;
<br>&gt; =A0 =A0 =A0 =A0 Now the first test is failing with this message :
<br>&gt;
<br>&gt;
<br>&gt; =A0 =A0 See <a href=3D"https://github.com/roelof1967/tamara/pull/1=
" target=3D"_blank">https://github.com/roelof1967/<u></u>tamara/pull/1</a>
<br>&gt; =A0 =A0 &lt;<a href=3D"https://github.com/roelof1967/tamara/pull/1=
" target=3D"_blank">https://github.com/<u></u>roelof1967/tamara/pull/1</a>&=
gt;
<br>&gt;
<br>&gt; =A0 =A0 The comment in snippets is there for a reason (pending# ex=
press the
<br>&gt; =A0 =A0 regexp above with the code you wish you had)
<br>&gt;
<br>&gt; =A0 =A0 Instead of leaving the Given stepdef blank you should have=
 written
<br>&gt; =A0 =A0 some code here. Since you didn&#39;t you got confused at a=
 later stage -
<br>&gt; =A0 =A0 in the When step.
<br>&gt;
<br>&gt; =A0 =A0 =A0 =A0 Given a user &quot;Aslak&quot; exists =A0 =A0 =A0 =
=A0 #
<br>&gt; =A0 =A0 =A0 =A0 features/step_definitions/<u></u>login_steps.rb:1
<br>&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0When he logs in =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 =A0 =A0 =A0 #
<br>&gt; =A0 =A0 =A0 =A0 features/step_definitions/<u></u>login_steps.rb:4
<br>&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0undefined method `[]&#39; for nil:N=
ilClass (NoMethodError)
<br>&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0./features/step_definitions/<u></u>=
login_steps.rb:5:in `/^he
<br>&gt; =A0 =A0 =A0 =A0 logs in$/&#39;
<br>&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0features/login.feature:5:in `When h=
e logs in&#39;
<br>&gt;
<br>&gt;
<br>&gt; =A0 =A0 =A0 =A0 Is this because I use @<a href=3D"http://user.name=
" target=3D"_blank">user.name</a> &lt;<a href=3D"http://user.name" target=
=3D"_blank">http://user.name</a>&gt; or do I
<br>&gt; =A0 =A0 =A0 =A0 don&#39;t see the right reason ?
<br>&gt;
<br>&gt; =A0 =A0 =A0 =A0 Roelof
<br>
<br>--=20
<br>=A0 ------------------------------<u></u>------------------------------=
<u></u>----------
<br>=A0 =A0* George Dinwiddie * =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
<a href=3D"http://blog.gdinwiddie.com" target=3D"_blank">http://blog.gdinwi=
ddie.com</a>
<br>=A0 =A0Software Development =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<a h=
ref=3D"http://www.idiacomputing.com" target=3D"_blank">http://www.idiacompu=
ting.com</a>
<br>=A0 =A0Consultant and Coach =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<a h=
ref=3D"http://www.agilemaryland.org" target=3D"_blank">http://www.agilemary=
land.org</a>
<br>=A0 ------------------------------<u></u>------------------------------=
<u></u>----------
<br>
<br></blockquote></blockquote>

<br>

-- <br>
-- Rules --<br>
=A0<br>
1) Please prefix the subject with [Ruby], [JVM] or [JS].<br>
2) Please use interleaved answers <a href=3D"http://en.wikipedia.org/wiki/P=
osting_style#Interleaved_style" target=3D"_blank">http://en.wikipedia.org/w=
iki/Posting_style#Interleaved_style</a><br>
3) If you have a question, don&#39;t reply to an existing message. Start a =
new topic instead.<br>
=A0<br>
You received this message because you are subscribed to the Google Groups C=
ukes group. To post to this group, send email to <a href=3D"mailto:cukes@go=
oglegroups.com" target=3D"_blank">cukes@googlegroups.com</a>. To unsubscrib=
e from this group, send email to <a href=3D"mailto:cukes+unsubscribe@google=
groups.com" target=3D"_blank">cukes+unsubscribe@googlegroups.com</a>. For m=
ore options, visit this group at <a href=3D"https://groups.google.com/d/for=
um/cukes?hl=3Den" target=3D"_blank">https://groups.google.com/d/forum/cukes=
?hl=3Den</a><br>


=A0<br>
=A0<br>
</div></div></div></blockquote></div><div><div class=3D"h5">

<br>

-- <br>
-- Rules --<br>
=A0<br>
1) Please prefix the subject with [Ruby], [JVM] or [JS].<br>
2) Please use interleaved answers <a href=3D"http://en.wikipedia.org/wiki/P=
osting_style#Interleaved_style" target=3D"_blank">http://en.wikipedia.org/w=
iki/Posting_style#Interleaved_style</a><br>
3) If you have a question, don&#39;t reply to an existing message. Start a =
new topic instead.<br>
=A0<br>
You received this message because you are subscribed to the Google Groups C=
ukes group. To post to this group, send email to <a href=3D"mailto:cukes@go=
oglegroups.com" target=3D"_blank">cukes@googlegroups.com</a>. To unsubscrib=
e from this group, send email to <a href=3D"mailto:cukes%2Bunsubscribe@goog=
legroups.com" target=3D"_blank">cukes+unsubscribe@googlegroups.com</a>. For=
 more options, visit this group at <a href=3D"https://groups.google.com/d/f=
orum/cukes?hl=3Den" target=3D"_blank">https://groups.google.com/d/forum/cuk=
es?hl=3Den</a><br>


=A0<br>
=A0<br></div></div></div> 		 	   		  </div></div><div class=3D"HOEnZb"><div=
 class=3D"h5">


<p></p>

-- <br>
-- Rules --<br>
=A0<br>
1) Please prefix the subject with [Ruby], [JVM] or [JS].<br>
2) Please use interleaved answers <a href=3D"http://en.wikipedia.org/wiki/P=
osting_style#Interleaved_style" target=3D"_blank">http://en.wikipedia.org/w=
iki/Posting_style#Interleaved_style</a><br>
3) If you have a question, don&#39;t reply to an existing message. Start a =
new topic instead.<br>
=A0<br>
You received this message because you are subscribed to the Google Groups C=
ukes group. To post to this group, send email to <a href=3D"mailto:cukes@go=
oglegroups.com" target=3D"_blank">cukes@googlegroups.com</a>. To unsubscrib=
e from this group, send email to <a href=3D"mailto:cukes%2Bunsubscribe@goog=
legroups.com" target=3D"_blank">cukes+unsubscribe@googlegroups.com</a>. For=
 more options, visit this group at <a href=3D"https://groups.google.com/d/f=
orum/cukes?hl=3Den" target=3D"_blank">https://groups.google.com/d/forum/cuk=
es?hl=3Den</a><br>


=A0<br>
=A0<br>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>=
Vicenzo Naves<br>ISTQB CTFL Certified<br>Analista de Testes<br>(31) 9996-69=
15<br><a href=3D"http://www.geekcuisine.com.br" target=3D"_blank">www.geekc=
uisine.com.br</a><br>

<br>
</div>

--f46d04479f3ddddd5f04cd958f87--