Home Rails testing framework gives errors unrelated to test
 The rails testing framework keeps giving me errors unrelated to my test files or my test_helper file, and I'm not sure why. It seems like it's running code from other parts of the project, and I'm trying to find out how it gets there. \$ rake test Run options: --seed 42237 # Running: EEE Finished in 0.692285s, 4.3335 runs/s, 0.0000 assertions/s. ... 3) Error: UserTest#test_the_truth: ActiveRecord::StatementInvalid: Mysql2::Error: Field 'created_at' doesn't have a default value: INSERT INTO balancesheets (Company_ID, Balancesheet_date) VALUES (1, '2015-05-12') I tried to write tests for my User model, but even if change the test to just "assert true", it still gets the strange output. Here is my test/models/user_test.rb require 'test_helper' class UserTest < ActiveSupport::TestCase test "the truth" do assert true end end And here is my test/test_helper.rb ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' class ActiveSupport::TestCase # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. fixtures :all # Add more helper methods to be used by all tests here... end I'm new to rails, and so both files are still basically their defaults when you start a new project. Why do I see test output relating to a mysql INSERT? If you could point me in the right direction, that would be great. Also, let me know if I need to add more context. Thanks! EDIT: Here is the file in db/migrate/ where I create balancesheets class CreateBalancesheets < ActiveRecord::Migration def change create_table :balancesheets do |t| t.integer :Company_ID t.date :Balancesheet_date t.timestamps null: false end end end
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.1706559658050537, "perplexity": 5090.766166207755}, "config": {"markdown_headings": true, "markdown_code": false, "boilerplate_config": {"ratio_threshold": 0.3, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-30/segments/1531676591140.45/warc/CC-MAIN-20180719144851-20180719164851-00439.warc.gz"}