Created
November 26, 2019 22:39
-
-
Save groys/d90e93c2e66d27cd8b503f9d656c7b79 to your computer and use it in GitHub Desktop.
Time validation failure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Error: | |
AlertTest#test_0001_should remove driver, vehicle, group and dispatcher when deactivated or deleted: | |
ActiveRecord::RecordInvalid: Validation failed: End time should be greater than start_time, End time should be greater than recent_located_at | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/validations.rb:79:in `raise_record_invalid' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/validations.rb:43:in `save!' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/attribute_methods/dirty.rb:29:in `save!' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:291:in `block in save!' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
vendor/bundle/ruby/2.3.0/gems/test_after_commit-1.1.0/lib/test_after_commit/database_statements.rb:11:in `block in transaction' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
vendor/bundle/ruby/2.3.0/gems/test_after_commit-1.1.0/lib/test_after_commit/database_statements.rb:5:in `transaction' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:220:in `transaction' | |
test/test_helpers/postamt_helper.rb:9:in `block in transaction' | |
vendor/bundle/ruby/2.3.0/bundler/gems/postamt-bee43a452102/lib/postamt.rb:19:in `on' | |
test/test_helpers/postamt_helper.rb:9:in `transaction' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:291:in `save!' | |
vendor/bundle/ruby/2.3.0/gems/factory_girl-4.7.0/lib/factory_girl/configuration.rb:18:in `block in initialize' | |
vendor/bundle/ruby/2.3.0/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb:15:in `create' | |
vendor/bundle/ruby/2.3.0/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:12:in `block in result' | |
vendor/bundle/ruby/2.3.0/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `tap' | |
vendor/bundle/ruby/2.3.0/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb:9:in `result' | |
vendor/bundle/ruby/2.3.0/gems/factory_girl-4.7.0/lib/factory_girl/factory.rb:42:in `run' | |
vendor/bundle/ruby/2.3.0/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:29:in `block in run' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:166:in `instrument' | |
vendor/bundle/ruby/2.3.0/gems/factory_girl-4.7.0/lib/factory_girl/factory_runner.rb:28:in `run' | |
vendor/bundle/ruby/2.3.0/gems/factory_girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method' | |
test/unit/alert_test.rb:17:in `block in <class:AlertTest>' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/spec.rb:183:in `instance_eval' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/spec.rb:183:in `block in before' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/test.rb:96:in `block (3 levels) in run' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/test.rb:195:in `capture_exceptions' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/test.rb:95:in `block (2 levels) in run' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest.rb:265:in `time_it' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/test.rb:94:in `block in run' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest.rb:360:in `on_signal' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/test.rb:211:in `with_info_handler' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/test.rb:93:in `run' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest.rb:960:in `run_one_method' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest.rb:334:in `run_one_method' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest.rb:321:in `block (2 levels) in run' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest.rb:320:in `each' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest.rb:320:in `block in run' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest.rb:360:in `on_signal' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest.rb:347:in `with_info_handler' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest.rb:319:in `run' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest.rb:159:in `block in __run' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest.rb:159:in `map' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest.rb:159:in `__run' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest.rb:136:in `run' | |
vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest.rb:63:in `block in autorun' | |
3166 runs, 26435 assertions, 0 failures, 1 errors, 2 skips |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment