Add unit tests back to pipeline & improve VSCode integration #476
Annotations
10 errors and 1 warning
Unit tests:
spec/requests/media_spec.rb#L50
Media #search_by can search for all (released) media
Failure/Error: becomes(Question).answers.delete_all
FrozenError:
can't modify frozen Hash: {"id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dace230 @name="id", @value_before_type_cast=41, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=41>, "external_reference_link"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dad34b0 @name="external_reference_link", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "created_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dad3488 @name="created_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "updated_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dad3370 @name="updated_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "sort"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dad3320 @name="sort", @value_before_type_cast="Question", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "description"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dad31b8 @name="description", @value_before_type_cast="Golden Juice Bar", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "teachable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dad30f0 @name="teachable_type", @value_before_type_cast="Lecture", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil, @value="Lecture">, "teachable_id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dad3000 @name="teachable_id", @value_before_type_cast=42, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=42>, "video_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dad2f60 @name="video_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "screenshot_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dad2f38 @name="screenshot_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "manuscript_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dad2f10 @name="manuscript_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "released"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dad2e98 @name="released", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "imported_manuscript"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dad2e70 @name="imported_manuscript", @value_before_type_cast=nil, @type=#<ActiveModel::Type::Boolean:0x00007f793eb7f8e0 @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "quizzable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dad2e48 @name="quizzable_type", @value_before_type_cast=nil, @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=ni
|
Unit tests:
spec/requests/media_spec.rb#L59
Media #search_by can search for media by title
Failure/Error: becomes(Question).answers.delete_all
FrozenError:
can't modify frozen Hash: {"id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ee3b0c0 @name="id", @value_before_type_cast=41, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=41>, "external_reference_link"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ee443f0 @name="external_reference_link", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "created_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ee44378 @name="created_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "updated_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ee44288 @name="updated_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "sort"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ee44260 @name="sort", @value_before_type_cast="Question", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "description"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ee4b1c8 @name="description", @value_before_type_cast="Golden Juice Bar", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "teachable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ee4b060 @name="teachable_type", @value_before_type_cast="Lecture", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil, @value="Lecture">, "teachable_id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ee4aef8 @name="teachable_id", @value_before_type_cast=42, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=42>, "video_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ee4ad90 @name="video_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "screenshot_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ee4ad68 @name="screenshot_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "manuscript_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ee4ad40 @name="manuscript_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "released"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ee4ab10 @name="released", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "imported_manuscript"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ee4a908 @name="imported_manuscript", @value_before_type_cast=nil, @type=#<ActiveModel::Type::Boolean:0x00007f793eb7f8e0 @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "quizzable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ee4a868 @name="quizzable_type", @value_before_type_cast=nil, @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "q
|
Unit tests:
spec/requests/media_spec.rb#L69
Media #search_by can search for media by sort
Failure/Error: becomes(Question).answers.delete_all
FrozenError:
can't modify frozen Hash: {"id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ec8c058 @name="id", @value_before_type_cast=41, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=41>, "external_reference_link"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ec91918 @name="external_reference_link", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "created_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ec918f0 @name="created_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "updated_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ec918c8 @name="updated_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "sort"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ec918a0 @name="sort", @value_before_type_cast="Question", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "description"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ec91878 @name="description", @value_before_type_cast="Golden Juice Bar", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "teachable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ec91850 @name="teachable_type", @value_before_type_cast="Lecture", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil, @value="Lecture">, "teachable_id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ec917d8 @name="teachable_id", @value_before_type_cast=42, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=42>, "video_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ec91788 @name="video_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "screenshot_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ec91760 @name="screenshot_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "manuscript_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ec916e8 @name="manuscript_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "released"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ec916c0 @name="released", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "imported_manuscript"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ec91698 @name="imported_manuscript", @value_before_type_cast=nil, @type=#<ActiveModel::Type::Boolean:0x00007f793eb7f8e0 @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "quizzable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ec915f8 @name="quizzable_type", @value_before_type_cast=nil, @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "qu
|
Unit tests:
spec/requests/media_spec.rb#L80
Media #search_by can search for media by tag
Failure/Error: becomes(Question).answers.delete_all
FrozenError:
can't modify frozen Hash: {"id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793eaebb68 @name="id", @value_before_type_cast=41, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=41>, "external_reference_link"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793eaeebb0 @name="external_reference_link", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "created_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793eaeea70 @name="created_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "updated_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793eaee8e0 @name="updated_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "sort"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793eaee4d0 @name="sort", @value_before_type_cast="Question", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "description"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793eaee2c8 @name="description", @value_before_type_cast="Golden Juice Bar", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "teachable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793eaedee0 @name="teachable_type", @value_before_type_cast="Lecture", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil, @value="Lecture">, "teachable_id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793eaedc38 @name="teachable_id", @value_before_type_cast=42, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=42>, "video_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793eaedbc0 @name="video_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "screenshot_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793eaed850 @name="screenshot_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "manuscript_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793eaed738 @name="manuscript_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "released"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793eaed710 @name="released", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "imported_manuscript"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793eaed6c0 @name="imported_manuscript", @value_before_type_cast=nil, @type=#<ActiveModel::Type::Boolean:0x00007f793eb7f8e0 @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "quizzable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793eaed418 @name="quizzable_type", @value_before_type_cast=nil, @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "qui
|
Unit tests:
spec/requests/media_spec.rb#L91
Media #search_by can do combined search with tagoperator "or" and description
Failure/Error: becomes(Question).answers.delete_all
FrozenError:
can't modify frozen Hash: {"id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e967da0 @name="id", @value_before_type_cast=41, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=41>, "external_reference_link"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e964290 @name="external_reference_link", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "created_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e964128 @name="created_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "updated_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e964038 @name="updated_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "sort"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e964010 @name="sort", @value_before_type_cast="Question", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "description"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e96bfb8 @name="description", @value_before_type_cast="Golden Juice Bar", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "teachable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e96bf90 @name="teachable_type", @value_before_type_cast="Lecture", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil, @value="Lecture">, "teachable_id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e96bf68 @name="teachable_id", @value_before_type_cast=42, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=42>, "video_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e96bf18 @name="video_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "screenshot_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e96bea0 @name="screenshot_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "manuscript_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e96be00 @name="manuscript_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "released"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e96bb58 @name="released", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "imported_manuscript"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e96bb08 @name="imported_manuscript", @value_before_type_cast=nil, @type=#<ActiveModel::Type::Boolean:0x00007f793eb7f8e0 @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "quizzable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e96ba68 @name="quizzable_type", @value_before_type_cast=nil, @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil
|
Unit tests:
spec/requests/media_spec.rb#L102
Media #search_by can do search with tagoperator "and" and description
Failure/Error: becomes(Question).answers.delete_all
FrozenError:
can't modify frozen Hash: {"id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e040fd8 @name="id", @value_before_type_cast=41, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=41>, "external_reference_link"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e047248 @name="external_reference_link", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "created_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e047220 @name="created_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "updated_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e0471f8 @name="updated_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "sort"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e0471d0 @name="sort", @value_before_type_cast="Question", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "description"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e0471a8 @name="description", @value_before_type_cast="Golden Juice Bar", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "teachable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e047180 @name="teachable_type", @value_before_type_cast="Lecture", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil, @value="Lecture">, "teachable_id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e047158 @name="teachable_id", @value_before_type_cast=42, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=42>, "video_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e047130 @name="video_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "screenshot_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e047090 @name="screenshot_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "manuscript_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e047068 @name="manuscript_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "released"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e047040 @name="released", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "imported_manuscript"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e047018 @name="imported_manuscript", @value_before_type_cast=nil, @type=#<ActiveModel::Type::Boolean:0x00007f793eb7f8e0 @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "quizzable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793e046ff0 @name="quizzable_type", @value_before_type_cast=nil, @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @orig
|
Unit tests:
spec/requests/media_spec.rb#L115
Media #search_by can search for all media with tags by using tagoperator "and"
Failure/Error: becomes(Question).answers.delete_all
FrozenError:
can't modify frozen Hash: {"id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793df93d88 @name="id", @value_before_type_cast=41, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=41>, "external_reference_link"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793df92370 @name="external_reference_link", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "created_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793df92348 @name="created_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "updated_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793df92320 @name="updated_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "sort"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793df922f8 @name="sort", @value_before_type_cast="Question", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "description"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793df922d0 @name="description", @value_before_type_cast="Golden Juice Bar", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "teachable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793df922a8 @name="teachable_type", @value_before_type_cast="Lecture", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil, @value="Lecture">, "teachable_id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793df92280 @name="teachable_id", @value_before_type_cast=42, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=42>, "video_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793df92258 @name="video_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "screenshot_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793df92230 @name="screenshot_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "manuscript_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793df92208 @name="manuscript_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "released"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793df921b8 @name="released", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "imported_manuscript"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793df92190 @name="imported_manuscript", @value_before_type_cast=nil, @type=#<ActiveModel::Type::Boolean:0x00007f793eb7f8e0 @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "quizzable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793df92118 @name="quizzable_type", @value_before_type_cast=nil, @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=ni
|
Unit tests:
spec/requests/media_spec.rb#L124
Media #search_by can search by teacher
Failure/Error: becomes(Question).answers.delete_all
FrozenError:
can't modify frozen Hash: {"id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793df287b8 @name="id", @value_before_type_cast=41, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=41>, "external_reference_link"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ded2b88 @name="external_reference_link", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "created_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ded2b60 @name="created_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "updated_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ded2b38 @name="updated_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "sort"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ded2ae8 @name="sort", @value_before_type_cast="Question", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "description"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ded2a48 @name="description", @value_before_type_cast="Golden Juice Bar", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "teachable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ded29f8 @name="teachable_type", @value_before_type_cast="Lecture", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil, @value="Lecture">, "teachable_id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ded2980 @name="teachable_id", @value_before_type_cast=42, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=42>, "video_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ded2908 @name="video_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "screenshot_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ded28b8 @name="screenshot_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "manuscript_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ded2890 @name="manuscript_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "released"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ded2868 @name="released", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "imported_manuscript"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ded2750 @name="imported_manuscript", @value_before_type_cast=nil, @type=#<ActiveModel::Type::Boolean:0x00007f793eb7f8e0 @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "quizzable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793ded26d8 @name="quizzable_type", @value_before_type_cast=nil, @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "quizzable
|
Unit tests:
spec/requests/media_spec.rb#L134
Media #search_by can search for media of subscribed lectures
Failure/Error: becomes(Question).answers.delete_all
FrozenError:
can't modify frozen Hash: {"id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793de54468 @name="id", @value_before_type_cast=41, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=41>, "external_reference_link"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793de59b98 @name="external_reference_link", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "created_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793de59b48 @name="created_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "updated_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793de59b20 @name="updated_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "sort"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793de59af8 @name="sort", @value_before_type_cast="Question", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "description"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793de59a30 @name="description", @value_before_type_cast="Golden Juice Bar", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "teachable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793de59990 @name="teachable_type", @value_before_type_cast="Lecture", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil, @value="Lecture">, "teachable_id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793de59940 @name="teachable_id", @value_before_type_cast=42, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=42>, "video_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793de59800 @name="video_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "screenshot_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793de59760 @name="screenshot_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "manuscript_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793de596c0 @name="manuscript_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "released"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793de59620 @name="released", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "imported_manuscript"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793de593c8 @name="imported_manuscript", @value_before_type_cast=nil, @type=#<ActiveModel::Type::Boolean:0x00007f793eb7f8e0 @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "quizzable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793de59378 @name="quizzable_type", @value_before_type_cast=nil, @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attr
|
Unit tests:
spec/requests/media_spec.rb#L144
Media #search_by can search for media of custom lecture
Failure/Error: becomes(Question).answers.delete_all
FrozenError:
can't modify frozen Hash: {"id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dd8d408 @name="id", @value_before_type_cast=41, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=41>, "external_reference_link"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dd93178 @name="external_reference_link", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "created_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dd930d8 @name="created_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "updated_at"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dd930b0 @name="updated_at", @value_before_type_cast=2024-04-30 23:36:36.534799 UTC, @type=#<ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp:0x00007f793eb8e1d8 @precision=nil, @scale=nil, @limit=nil, @Timezone=nil>, @original_attribute=nil>, "sort"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dd93038 @name="sort", @value_before_type_cast="Question", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "description"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dd93010 @name="description", @value_before_type_cast="Golden Juice Bar", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "teachable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dd92fe8 @name="teachable_type", @value_before_type_cast="Lecture", @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil, @value="Lecture">, "teachable_id"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dd92ef8 @name="teachable_id", @value_before_type_cast=42, @type=#<ActiveModel::Type::Integer:0x00007f793eba8038 @precision=nil, @scale=nil, @limit=8, @range=-9223372036854775808...9223372036854775808>, @original_attribute=nil, @value=42>, "video_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dd92ed0 @name="video_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "screenshot_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dd92e80 @name="screenshot_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "manuscript_data"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dd92e30 @name="manuscript_data", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "released"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dd92e08 @name="released", @value_before_type_cast=nil, @type=#<ActiveRecord::Type::Text:0x00007f793eb7fb60 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "imported_manuscript"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dd92de0 @name="imported_manuscript", @value_before_type_cast=nil, @type=#<ActiveModel::Type::Boolean:0x00007f793eb7f8e0 @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, "quizzable_type"=>#<ActiveModel::Attribute::FromDatabase:0x00007f793dd92db8 @name="quizzable_type", @value_before_type_cast=nil, @type=#<ActiveModel::Type::String:0x00007f793eb8eb38 @true="t", @false="f", @precision=nil, @scale=nil, @limit=nil>, @original_attribute
|
Unit tests:
spec/models/talk_tag_join_spec.rb#L4
TalkTagJoin add some examples to (or delete) /usr/src/app/spec/models/talk_tag_join_spec.rb
Skipped: Not yet implemented
|