Issues with gem package 9 RC and cucumber

3 views
Skip to first unread message

banane

unread,
Jan 9, 2010, 10:31:48 PM1/9/10
to radiant...@googlegroups.com
I'm sorting through some errors I get when running the "rake
radiant:package." I'm wondering if it's just some kind of version
issue with cucumber and RC9? I'm just flailing around trying to figure
this out, so if anyone has time, interest, or some advice, I'd
appreciate it!

I have:
cucumber-rails (0.2.3)
cucumber (0.4.4, 0.3.104)
webrat (0.6.0)


(invoking cucumber:)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I
"/Users/anna/.gem/ruby/1.8/gems/cucumber-0.4.4/lib:lib"
"/Users/anna/.gem/ruby/1.8/gems/cucumber-0.4.4/bin/cucumber" --color
--tags ~@wip --strict --format pretty


(test stuff then)

Failing Scenarios:
cucumber features/admin/content_negotiation.feature:12 # Scenario:
Requesting XML format via file-extension
cucumber features/admin/content_negotiation.feature:18 # Scenario:
Requesting children via Ajax
cucumber features/admin/layouts_management.feature:8 # Scenario: View a layout
cucumber features/admin/pages_management.feature:9 # Scenario: Listing pages
cucumber features/admin/snippets_management.feature:8 # Scenario: List snippets
cucumber features/admin/user_permissions.feature:95 # Scenario: Admins
can see and edit users
cucumber features/admin/user_permissions.feature:128 # Scenario: Admin
users can see extensions
cucumber features/admin/users_management.feature:8 # Scenario: Listing users
cucumber features/page_serving.feature:9 # Scenario: Basic page rendering
cucumber features/page_serving.feature:14 # Scenario: Rendering deeply
nested page
cucumber features/page_serving.feature:19 # Scenario: Apache/lighttpd
acceleration
cucumber features/page_serving.feature:25 # Scenario: nginx acceleration
cucumber features/page_serving.feature:31 # Scenario: page caching enabled
cucumber features/page_serving.feature:37 # Scenario: page caching disabled

68 scenarios (49 failed, 18 skipped, 1 passed)
376 steps (49 failed, 290 skipped, 37 passed)
0m7.083s

Sarah Allen

unread,
Jan 9, 2010, 10:39:05 PM1/9/10
to radiant...@googlegroups.com
I found that I needed to install cucumber 0.3.9 for Radiant -- I think
I had different failures, but it was a while back

> --
> Radiant CMS Dev Mailing List
> Post: radiant...@googlegroups.com
> Unsubscribe: radiantcms-de...@googlegroups.com
> Group Site: http://groups.google.com/group/radiantcms-dev/

http://www.ultrasaurus.com

Jim Gay

unread,
Jan 9, 2010, 10:51:27 PM1/9/10
to radiant...@googlegroups.com
The problems seem to be coming from dataset.
I've not tracked it down, but started a branch where I planned to fix the cucumber problems

Sean Cribbs

unread,
Jan 10, 2010, 12:46:54 AM1/10/10
to radiant...@googlegroups.com
Unless someone reverted the submodule thing, I froze and fixed dataset so it would work on cucumber 0.4+.  (See http://github.com/radiant/radiant/commit/318742f5ebf50568b09e76a5e91b687284e15d69) I did not, however, fix the stories that were broken because of the 0.9 UI changes.  That's where the work needs to be done.

Sean

sc...@vaderpi.com

unread,
Jan 14, 2010, 2:03:31 PM1/14/10
to Radiant CMS: Dev
I am working on getting the features to pass with the latest versions
of cucumber (0.6.1) and cucumber-rails (0.2.3). I just got started
last night, and I have already made a fair amount of progress. I
expect to have a patch ready within a week.

On Jan 10, 12:46 am, Sean Cribbs <seancri...@gmail.com> wrote:
> Unless someone reverted the submodule thing, I froze and fixed dataset

> so it would work on cucumber 0.4+.  (Seehttp://github.com/radiant/radiant/commit/318742f5ebf50568b09e76a5e91b...)

> >         <mailto:radiant...@googlegroups.com>
> >         Unsubscribe: radiantcms-de...@googlegroups.com
> >         <mailto:radiantcms-de...@googlegroups.com>

banane

unread,
Jan 18, 2010, 1:09:44 PM1/18/10
to radiant...@googlegroups.com
I'm still struggling with getting tests to at least not corrupt my gem
build. My list of gems:
I got this working last week but am having issues getting the
environment setup again! Thanks Scott for working on fixing those cuke
errors.

webrat (0.6.0, 0.4.4)
rails (2.3.5, 2.3.4, 2.3.2, 2.2.2, 1.2.6)
rake (0.8.7, 0.8.3)
polyglot (0.2.9, 0.2.5)
rack (1.1.0, 1.0.1, 1.0.0)
test-unit (2.0.6, 2.0.5)
RedCloth (4.2.2, 4.1.1)
rspec (1.2.9)
rspec-rails (1.2.9)
cucumber (0.6.2, 0.4.4, 0.3.104, 0.3.9)
cucumber-rails (0.2.4, 0.2.3)

Any conflict or issue pop out at anyone? I just pulled the latest
commit of radiant into my fork and still dealing with this issue:

can't activate cucumber (= 0.4.4, runtime) for [], already activated
cucumber-0.6.2 for ["cucumber-rails-0.2.4"] (Gem::LoadError)

I'm noticing when I uninstall the cucumber gem 4.2, I get a
requirement to install cucumber-rails, and then it installs cucumber
again. Very frustrating.

Any help is welcome!

> Unsubscribe: radiantcms-de...@googlegroups.com
> Group Site:  http://groups.google.com/group/radiantcms-dev/
>

Sean Cribbs

unread,
Jan 18, 2010, 1:24:47 PM1/18/10
to radiant...@googlegroups.com
The problem is that our gem requirement for cucumber is too loose,
probably something like >=0.4.0. That would activate 0.6.x even if our
code isn't compatible. We should change it to "=" instead.

Sean

sc...@vaderpi.com

unread,
Jan 18, 2010, 2:42:16 PM1/18/10
to radiant...@googlegroups.com
I have not tried running any of the rake gem: tasks. I can try later today and let you know if I am seeing the same results.

I was only planning on getting the features to run against the latest version of cucumber (and cucumber-rails). In addition to that, should I try to figure out how many previous cucumber versions we can support? I doubt that it is going to be many, if any. Cucumber is a fast moving target. Aslak is a machine. :)

banane

unread,
Jan 18, 2010, 2:54:36 PM1/18/10
to radiant...@googlegroups.com
Well, despite setting it to =0.4.4, I'm deleting test files to get
this to package. Argh!

banane

unread,
Jan 18, 2010, 3:03:28 PM1/18/10
to radiant...@googlegroups.com
Alright, this worked, so thought I'd share.

To intall Edge as gem:

git to local dir
edit config/test.rb to be cucumber = (not >=) 0.4.4
sudo rake db:migrate RAILS_ENV=test
delete rake tasks cucumber.rb and rspec.rb
sudo rake radiant:package >../gemout.txt
sudo gem install radiant-0.9.0 -l

webrat (0.6.0, 0.4.4)
rspec (1.2.9)
rspec-rails (1.2.9)
cucumber (0.4.4)
dataset (1.3.2)
autotest (4.1.4)


rails (2.3.5, 2.3.4, 2.3.2, 2.2.2, 1.2.6)

Feels kind of hackish, but it did work.

Anna

William Ross

unread,
Jan 25, 2010, 6:15:16 PM1/25/10
to radiant...@googlegroups.com
On 18 Jan 2010, at 20:03, banane wrote:

> Alright, this worked, so thought I'd share.
>
> To intall Edge as gem:
>
> git to local dir
> edit config/test.rb to be cucumber = (not >=) 0.4.4
> sudo rake db:migrate RAILS_ENV=test
> delete rake tasks cucumber.rb and rspec.rb
> sudo rake radiant:package >../gemout.txt
> sudo gem install radiant-0.9.0 -l


I've taken Scott's work on Cucumber and Dataset and fixed the rest of the tests. There were really only minor inconsistencies left. You should find that with this branch:

http://github.com/spanner/radiant/tree/fix_cucumber

you can just run rake radiant:package.

best,

will

John Long

unread,
Jan 26, 2010, 1:14:11 AM1/26/10
to radiant...@googlegroups.com
Will, I've given you commit rights on GitHub. Can you merge in your changes.

Thanks!

--
John Long
http://wiseheartdesign.com
http://recursivecreative.com

William Ross

unread,
Jan 26, 2010, 2:49:29 AM1/26/10
to radiant...@googlegroups.com
On 26 Jan 2010, at 06:14, John Long wrote:

> Will, I've given you commit rights on GitHub. Can you merge in your changes.

Thank you. I will do.

I believe Scott is talking to Adam Williams about the work he's done on dataset (which is the larger part of what has happened here) and if that can be resolved it will be a cleaner update. I'd better wait and see how that goes first. Or would you like the present version in a branch?

best,

will

William Ross

unread,
Jan 26, 2010, 3:13:27 AM1/26/10
to radiant...@googlegroups.com
On 26 Jan 2010, at 07:49, William Ross wrote:

> On 26 Jan 2010, at 06:14, John Long wrote:
>
>> Will, I've given you commit rights on GitHub. Can you merge in your changes.
>
> Thank you. I will do.

Oh wait: it has been done. Thank you!

will

Reply all
Reply to author
Forward
0 new messages