Hi,
I’ve posted this to rubyforge, but I thought I’d post here as well in
case anyone outside the acts_as_taggable project has experienced this.
I’m trying to run the acts_as_taggable unit tests. I found I had to
create various tables, and even once I had created them all I still got
some errors.
Errors and required tables below and at:
http://rubyforge.org/tracker/index.php?func=detail&aid=3497&group_id=923&atid=3629
I was wondering if I might be able to get some input on how to run these
tests properly. It would be nice if the tests could run completely
standalone. I’m hoping to submit a patch that allows the “name” column
on the tag table to be adjusted.
CHEERS> SAM
-
Failure:
test_find_related_tags(ActAsTaggableTest)
[test/acts_as_taggable_test.rb:216]:
<2> expected but was
<1>. -
Error:
test_find_tagged_with_on_subclasses(ActAsTaggableTest):
NoMethodError: undefined methodtag' for nil:NilClass test/acts_as_taggable_test.rb:223:in
test_find_tagged_with_on_subclasses’ -
Failure:
test_tag_cloud(ActAsTaggableTest) [test/acts_as_taggable_test.rb:318]:
<9> expected but was
<11>. -
Error:
test_tagging_with_join_model(ActAsTaggableTest):
NoMethodError: undefined methodtag' for nil:NilClass test/acts_as_taggable_test.rb:106:in
test_tagging_with_join_model’ -
Error:
test_with_non_defaults(ActAsTaggableTest):
NoMethodError: undefined methodtag_names' for nil:NilClass test/acts_as_taggable_test.rb:342:in
test_tagging’
test/acts_as_taggable_test.rb:91:in `test_with_non_defaults’
Additional tables required by tests:
DROP TABLE IF EXISTS companies
;
CREATE TABLE IF NOT EXISTS companies
(
id
int(11) NOT NULL auto_increment,
name
varchar(255) NOT NULL default ‘’,
PRIMARY KEY (id
)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS posts
;
CREATE TABLE IF NOT EXISTS posts
(
id
int(11) NOT NULL auto_increment,
title
varchar(255) NOT NULL default ‘’,
respond_to
varchar(255) NOT NULL default ‘’,
PRIMARY KEY (id
)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS topics
;
CREATE TABLE IF NOT EXISTS topics
(
id
int(11) NOT NULL auto_increment,
title
varchar(255) NOT NULL default ‘’,
approved
tinyint(4) default NULL,
replies_count
int(11) default NULL,
content
varchar(255) default NULL,
written_on
datetime default NULL,
parent_id
int(11) default NULL,
author_name
varchar(255) default NULL,
bonus_time
datetime default NULL,
author_email_address
varchar(255) default NULL,
last_read
date default NULL,
PRIMARY KEY (id
)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;