old_test/unit/topic_test.rb
File topic_test.rb
has 686 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require File.dirname(__FILE__) + '/../test_helper'
class TopicTest < ActiveSupport::TestCase
# fixtures preloaded
include KeteUrlFor
Class TopicTest
has 54 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class TopicTest < ActiveSupport::TestCase
# fixtures preloaded
include KeteUrlFor
def setup
Method test_extended_content_accessors_with_ftype_topic_type_multiple
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def test_extended_content_accessors_with_ftype_topic_type_multiple
for_topic_with(
TopicType.find_by_name("Person"),
{
:label => "Relatives",
Method test_structured_extended_content_getter_with_multiple_ftype_topic_type
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def test_structured_extended_content_getter_with_multiple_ftype_topic_type
for_topic_with(
TopicType.find_by_name("Person"), {
:label => "Relatives",
:ftype => 'topic_type',
Method test_structured_extended_content_setter_with_ftype_topic_type_multiple
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def test_structured_extended_content_setter_with_ftype_topic_type_multiple
for_topic_with(
TopicType.find_by_name("Person"),
{
:label => "Relatives",
TODO found Open
Open
# TODO: seems we are missing choices tests that have a value that is different than label
- Exclude checks
TODO found Open
Open
# TODO: add year and circa validation testing
- Exclude checks
TODO found Open
Open
# TODO: We do not have a plan for how radio fields are to be used in Kete.
- Exclude checks
TODO found Open
Open
# TODO: need accessor tests for date, year (including circa), map ftypes, etc.
- Exclude checks