2021-06-20

Failure/Error: __send__(method, file)

SyntaxError:
  /Users/liudezhi/parking-app/spec/models/parking_spec.rb:8: syntax error, unexpected tINTEGER, expecting do or '{' or '('
  ...start_at => t, :end_at => t  30.minutes )
  ...                             ^~
  /Users/liudezhi/parking-app/spec/models/parking_spec.rb:8: syntax error, unexpected ')', expecting end
  ...> t, :end_at => t  30.minutes )
  ...                              ^
  /Users/liudezhi/parking-app/spec/models/parking_spec.rb:14: syntax error, unexpected tINTEGER, expecting do or '{' or '('
  ...start_at => t, :end_at => t  60.minutes )
  ...                             ^~
  /Users/liudezhi/parking-app/spec/models/parking_spec.rb:14: syntax error, unexpected ')', expecting end
  ...> t, :end_at => t  60.minutes )
  ...                              ^
  /Users/liudezhi/parking-app/spec/models/parking_spec.rb:20: syntax error, unexpected tINTEGER, expecting do or '{' or '('
  ...start_at => t, :end_at => t  61.minutes )
  ...                             ^~
  /Users/liudezhi/parking-app/spec/models/parking_spec.rb:20: syntax error, unexpected ')', expecting end
  ...> t, :end_at => t  61.minutes )
  ...                              ^
  /Users/liudezhi/parking-app/spec/models/parking_spec.rb:23: syntax error, unexpected end, expecting end-of-input
      end
      ^~~
# /Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/lib/rspec/core/configuration.rb:2112:in `load'
# /Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/lib/rspec/core/configuration.rb:2112:in `load_file_handling_errors'
# /Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/lib/rspec/core/configuration.rb:1615:in `block in load_spec_files'
# /Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/lib/rspec/core/configuration.rb:1613:in `each'
# /Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/lib/rspec/core/configuration.rb:1613:in `load_spec_files'
# /Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:102:in `setup'
# /Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:86:in `run'
# /Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:71:in `run'
# /Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:45:in `invoke'
# /Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/exe/rspec:4:in `'
# /Users/liudezhi/.rvm/gems/ruby-2.6.2/bin/rspec:23:in `load'
# /Users/liudezhi/.rvm/gems/ruby-2.6.2/bin/rspec:23:in `
' # /Users/liudezhi/.rvm/gems/ruby-2.6.2/bin/ruby_executable_hooks:24:in `eval' # /Users/liudezhi/.rvm/gems/ruby-2.6.2/bin/ruby_executable_hooks:24:in `
' # # Showing full backtrace because every line was filtered out. # See docs for RSpec::Configuration#backtrace_exclusion_patterns and # RSpec::Configuration#backtrace_inclusion_patterns for more information. No examples found. Finished in 0.00005 seconds (files took 0.294 seconds to load) 0 examples, 0 failures, 1 error occurred outside of examples

译文:

加载./spec/models/parking\u spec.rb时出错。
失败/错误:\发送\发送(方法,文件)
语法错误:
/Users/liudezhi/parking-app/spec/models/parking\u spec.rb:8:语法错误,意外的tINTEGER,应为do或'{'或'('
…开始时间=>t,:结束时间=>t(30分钟)
...                             ^~
/Users/liudezhi/parking app/spec/models/parking_spec.rb:8:语法错误,意外“)”,应为end
…>t,:结束时间=>t 30分钟)
...                              ^
/Users/liudezhi/parking-app/spec/models/parking\u spec.rb:14:语法错误,意外的tINTEGER,应为do或'{'或'('
…开始时间=>t,:结束时间=>t(60分钟)
...                             ^~
/Users/liudezhi/parking app/spec/models/parking_spec.rb:14:语法错误,意外“)”,应为end
…>t,:结束时间=>t 60分钟)
...                              ^
/Users/liudezhi/parking-app/spec/models/parking\u spec.rb:20:语法错误,意外的tINTEGER,应为do或'{'或'('
…开始时间=>t,:结束时间=>t(61分钟)
...                             ^~
/Users/liudezhi/parking app/spec/models/parking_spec.rb:20:语法错误,意外“)”,应为end
…>t,:结束时间=>t 61.5分钟)
...                              ^
/Users/liudezhi/parking-app/spec/models/parking\u spec.rb:23:语法错误,意外结束,需要输入结束
结束
^~~
#/Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/lib/rspec/core/configuration.rb:2112:in“加载”
#/Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/lib/rspec/core/configuration.rb:2112:in“加载文件\处理错误”
#/Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/lib/rspec/core/configuration.rb:1615:in“加载规范文件中的块”
#/Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/lib/rspec/core/configuration.rb:1613:in“每个”
#/Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/lib/rspec/core/configuration.rb:1613:in“加载规范文件”
#/Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:102:in“安装程序”
#/Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:86:in“运行”
#/Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:71:在“run”中
#/Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:45:in“调用”
#/Users/liudezhi/.rvm/gems/ruby-2.6.2/gems/rspec-core-3.10.1/exe文件/rspec:4:在“”中
#/Users/liudezhi/.rvm/gems/ruby-2.6.2/bin文件/rspec:23:在“load”中
#/Users/liudezhi/.rvm/gems/ruby-2.6.2/bin文件/rspec:23:在“
”中 #/Users/liudezhi/.rvm/gems/ruby-2.6.2/bin/ruby\u可执行文件_hooks:24:在“eval”中 #/Users/liudezhi/.rvm/gems/ruby-2.6.2/bin/ruby\u可执行文件_hooks:24:在“
”中 # #显示完全回溯,因为每一行都被过滤掉了。 #RSpec::Configuration#backtraceŠexclusionŠpatterns和 #RSpec::配置#回溯Š包含Š模式以获取更多信息。 未找到示例。 0.00005秒完成(加载文件需要0.294秒) 0个示例,0个失败,1个错误发生在示例之外

你可能感兴趣的:(2021-06-20)