How to obtain 0.4.4?

0 views
Skip to first unread message

lsiden

unread,
Nov 24, 2009, 11:48:50 PM11/24/09
to Cukes
I want to obtain 0.4.4 in order to call steps from step definitions.
What's the preferred way to do that? Should I just clone the github
repository and build it locally or is there another remote source that
I can point "gem install" at?

Mike Sassak

unread,
Nov 25, 2009, 12:52:51 AM11/25/09
to cu...@googlegroups.com
Hi Larry,

Cucumber 0.4.4 was released a week or two ago, so "gem install
cucumber" should be all you need. You might need to add
http://gemcutter.org to your gem sources, but I'm not sure that's even
necessary anymore.

Mike

> --
>
> You received this message because you are subscribed to the Google Groups "Cukes" group.
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
>
>
>

hectorsq

unread,
Nov 25, 2009, 12:47:28 AM11/25/09
to cu...@googlegroups.com
gem install cucumber -s http://gemcutter.org

Enjoy!
hectorsq

aslak hellesoy

unread,
Nov 25, 2009, 3:43:31 AM11/25/09
to cu...@googlegroups.com
> gem install cucumber -s http://gemcutter.org
>

That's right - I don't think I pushed 0.4.4 to rubyforge, only
gemcutter. I'll push to rubyforge and gemcutter in the future - as
long as it's possible. At some point rubyforge will probably deny
publishing new gems if they haven't already.

A more permanent solution is:

gem install gemcutter && gem tumble
or
gem source --add http://gemcutter.org

Now you can just gem install cucumber (without the -s)

Aslak

lsiden

unread,
Nov 26, 2009, 10:15:05 AM11/26/09
to Cukes
lsiden@morpheus:cucumber$ cucumber --version
0.4.4
lsiden@morpheus:cucumber$ cucumber
no such file to load -- webrat (LoadError)

At the advice of some post I installed ruby1.9-dev and when I ran
"sudo gem install webrat" it threw

In file included from ./nokogiri.h:72,
from ./xml_schema.h:4,
from xml_schema.c:1:
./xml_document.h:5:16: error: st.h: No such file or directory
make: *** [xml_schema.o] Error 1


Gem files will remain installed in /var/lib/gems/1.9.0/gems/
nokogiri-1.4.0 for inspection.
Results logged to /var/lib/gems/1.9.0/gems/nokogiri-1.4.0/ext/nokogiri/
gem_make.out


On Nov 25, 3:43 am, aslak hellesoy <aslak.helle...@gmail.com> wrote:
> > gem install cucumber -shttp://gemcutter.org
>
> That's right - I don't think I pushed 0.4.4 to rubyforge, only
> gemcutter. I'll push to rubyforge and gemcutter in the future - as
> long as it's possible. At some point rubyforge will probably deny
> publishing new gems if they haven't already.
>
> A more permanent solution is:
>
> gem install gemcutter && gem tumble
> or
> gem source --addhttp://gemcutter.org

lsiden

unread,
Nov 26, 2009, 3:20:06 PM11/26/09
to Cukes
I got that cleared up. But now I come to the reason I wanted to
upgrade to 0.4.4 in the first place: I want invoke steps within step
definitions, a' la http://wiki.github.com/aslakhellesoy/cucumber/calling-steps-from-step-definitions
- "As of version 0.4.4 you can also do this:". When the script runs
this step:

And /^Admin can see my post.$/ do
steps %Q{
Given I am logged into "https://westside-consulting.com/tes-
admin/" as user="tes", password="tes-password",
When I visit "http://westside-consulting.com/tes/sales_leads",
Then I should see "Loan Purpose: <loan_purpose>",
And I should see "Loan Amount: <loan_amount>".
}
end

I see only:

...
And Admin can see my post. # features/sales_lead.feature:29

Examples:
...

and that's it for that step! I don't see any of the inner steps being
run. Obviously, I must be missing something.

aslak hellesoy

unread,
Nov 26, 2009, 4:38:27 PM11/26/09
to cukes
If you point us to something that lets us reproduce it we can help you
find out what's wrong.

Aslak

Rob Holland

unread,
Nov 27, 2009, 4:18:34 AM11/27/09
to cu...@googlegroups.com
On Thu, Nov 26, 2009 at 9:38 PM, aslak hellesoy
<aslak.h...@gmail.com> wrote:

>> And /^Admin can see my post.$/ do
>>  steps %Q{
>>    Given I am logged into "https://westside-consulting.com/tes-
>> admin/" as user="tes", password="tes-password",
>>    When I visit "http://westside-consulting.com/tes/sales_leads",
>>    Then I should see "Loan Purpose: <loan_purpose>",
>>    And I should see "Loan Amount: <loan_amount>".
>>  }
>> end

You have trailing commas, the wiki example does not.

lsiden

unread,
Nov 27, 2009, 2:39:07 PM11/27/09
to Cukes
Sure, Aslak.

This is the feature that uses steps within a step-definition:
http://github.com/lsiden/tes/blob/master/cucumber/features/sales_lead.feature.

And here are the step definitions:
http://github.com/lsiden/tes/blob/master/cucumber/features/step_definitions/steps.rb

On Nov 26, 4:38 pm, aslak hellesoy <aslak.helle...@gmail.com> wrote:
> > I got that cleared up.  But now I come to the reason I wanted to
> > upgrade to 0.4.4 in the first place: I want invoke steps within step
> > definitions, a' lahttp://wiki.github.com/aslakhellesoy/cucumber/calling-steps-from-step...

Matt Wynne

unread,
Nov 28, 2009, 6:14:16 AM11/28/09
to cu...@googlegroups.com
I'm not sure you should expect to see the inner steps in the formatter
output. There is an --expand option, but I think that only works to
expand Scenario Outline tables into full scenarios when printed. AFAIK
there is not currently any way to see the inner steps when you do
this, though I do seem to remember it being mentioned before.


cheers,
Matt

http://mattwynne.net
+447974 430184

aslak hellesoy

unread,
Nov 28, 2009, 7:31:24 AM11/28/09
to cukes
On Fri, Nov 27, 2009 at 8:39 PM, lsiden <lsi...@gmail.com> wrote:
> Sure, Aslak.
>
> This is the feature that uses steps within a step-definition:
> http://github.com/lsiden/tes/blob/master/cucumber/features/sales_lead.feature.
>
> And here are the step definitions:
> http://github.com/lsiden/tes/blob/master/cucumber/features/step_definitions/steps.rb
>

What Rob said. Lose the commas at the end of each line.

Aslak
Reply all
Reply to author
Forward
0 new messages