Forum: RSpec [Cucumber] running `cucumber` without a gem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3880f04333bf8375b44cd6aa135406c7?d=identicon&s=25 Bart Zonneveld (Guest)
on 2009-02-13 12:05
(Received via mailing list)
Hey list,

I have a test server, which doesn't have cucumber as gem, so I
unpacked it into vendor/gems. After some fiddling with load paths, it
works.
However, the "binary" cucumber command won't run, since it needs the
cucumber gem. I tried adjusting that file to actually use the unpacked
gem, but I can't get it to work. What I have now is
http://gist.github.com/63844

Any ideas?
thanks,
bartz
5d38ab152e1e3e219512a9859fcd93af?d=identicon&s=25 David Chelimsky (Guest)
on 2009-02-13 12:38
(Received via mailing list)
On Fri, Feb 13, 2009 at 4:47 AM, Bart Zonneveld
<zuperinfinite@gmail.com> wrote:
> Hey list,
>
> I have a test server, which doesn't have cucumber as gem, so I unpacked it
> into vendor/gems. After some fiddling with load paths, it works.
> However, the "binary" cucumber command won't run, since it needs the
> cucumber gem. I tried adjusting that file to actually use the unpacked gem,
> but I can't get it to work. What I have now is http://gist.github.com/63844

I haven't tried this, but take a peek at http://gist.github.com/63853

The path should include 'lib', and you shouldn't need the other
version resolution stuff.

HTH,
David
3880f04333bf8375b44cd6aa135406c7?d=identicon&s=25 Bart Zonneveld (Guest)
on 2009-02-13 14:23
(Received via mailing list)
On 13 feb 2009, at 12:14, David Chelimsky wrote:

>> but I can't get it to work. What I have now is http://gist.github.com/63844
>
> I haven't tried this, but take a peek at http://gist.github.com/63853
>
> The path should include 'lib', and you shouldn't need the other
> version resolution stuff.

Alas, that didn't work. See http://gist.github.com/63874

thanks so far!
bartz
5d38ab152e1e3e219512a9859fcd93af?d=identicon&s=25 David Chelimsky (Guest)
on 2009-02-13 16:30
(Received via mailing list)
On Fri, Feb 13, 2009 at 6:23 AM, Bart Zonneveld
<zuperinfinite@gmail.com> wrote:
>>> into vendor/gems. After some fiddling with load paths, it works.
>
> Alas, that didn't work. See http://gist.github.com/63874

try "load 'cucumber.rb"
3880f04333bf8375b44cd6aa135406c7?d=identicon&s=25 Bart Zonneveld (Guest)
on 2009-02-14 14:36
(Received via mailing list)
On 13 feb 2009, at 16:28, David Chelimsky wrote:

>>>>
>>>> http://gist.github.com/63844
>>>
>>> I haven't tried this, but take a peek at http://gist.github.com/
>>> 63853
>>>
>>> The path should include 'lib', and you shouldn't need the other
>>> version resolution stuff.
>>
>> Alas, that didn't work. See http://gist.github.com/63874
>
> try "load 'cucumber.rb"

Still no dice. Weird, such a simple concept, but it just won't work...

gr,
bartz
F86901feca747abbb5c6c020362ef2e7?d=identicon&s=25 Zach Dennis (zdennis)
on 2009-02-14 17:46
(Received via mailing list)
Is your file path wrong? I see:

   $:.unshift 'vendor/gems/cucumber-0.1.6/lib'

Shouldn't that be:

   $:.unshift 'vendor/gems/cucumber-0.1.16/lib'

??



On Sat, Feb 14, 2009 at 7:41 AM, Bart Zonneveld
<zuperinfinite@gmail.com> wrote:
>>>> wrote:
>>>>> http://gist.github.com/63844
> Still no dice. Weird, such a simple concept, but it just won't work...
>
> gr,
> bartz
>
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>



--
Zach Dennis
http://www.continuousthinking.com
http://www.mutuallyhuman.com
3880f04333bf8375b44cd6aa135406c7?d=identicon&s=25 Bart Zonneveld (Guest)
on 2009-02-16 09:28
(Received via mailing list)
On 14-feb-2009, at 17:43, Zach Dennis wrote:

> Is your file path wrong? I see:
>
>    $:.unshift 'vendor/gems/cucumber-0.1.6/lib'
>
> Shouldn't that be:
>
>    $:.unshift 'vendor/gems/cucumber-0.1.16/lib'

D'oh! Great catch!
However, it still doesn't work :(. See http://gist.github.com/65073
It loads cucumber, then exits without running any features.
This topic is locked and can not be replied to.