当我尝试在rails中运行测试时,我收到ruby解释器错误

时间:2016-06-20 15:19:55

标签: ruby-on-rails ruby

我正在为邀请功能编写测试,但我收到以下错误。错误非常大,所以我会在错误结束时包含注释。运行命令bundle exec rake test时出现此错误。

7f394fb08000-7f394fb1a000 rw-p 00000000 00:00 0 
7f394fb1a000-7f394fb3d000 r-xp 00000000 00:128 34                        /lib/x86_64-linux-gnu/ld-2.19.so
7f394fbdc000-7f394fbff000 r--s 00000000 00:128 2805                      /usr/local/rvm/rubies/ruby-2.3.0/bin/ruby
7f394fbff000-7f394fd00000 rw-p 00000000 00:00 0 
7f394fd00000-7f394fd26000 r--p 00000000 00:128 132                       /usr/lib/locale/C.UTF-8/LC_CTYPE
7f394fd26000-7f394fd2b000 rw-p 00000000 00:00 0 
7f394fd2e000-7f394fd2f000 rw-p 00000000 00:00 0 
7f394fd2f000-7f394fd30000 ---p 00000000 00:00 0 
7f394fd30000-7f394fd33000 rw-p 00000000 00:00 0                          [stack:3392]
7f394fd33000-7f394fd3a000 r--s 00000000 00:128 120                       /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
7f394fd3a000-7f394fd3c000 rw-p 00000000 00:00 0 
7f394fd3c000-7f394fd3d000 r--p 00022000 00:128 34                        /lib/x86_64-linux-gnu/ld-2.19.so
7f394fd3d000-7f394fd3e000 rw-p 00023000 00:128 34                        /lib/x86_64-linux-gnu/ld-2.19.so
7f394fd3e000-7f394fd3f000 rw-p 00000000 00:00 0 
7ffe56bd9000-7ffe573d8000 rw-p 00000000 00:00 0 
7ffe573d8000-7ffe573da000 r--p 00000000 00:00 0                          [vvar]
7ffe573da000-7ffe573dc000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

我还包括我正在运行的invitation_mailer_test。

require 'test_helper'

class InvitationMailerTest < ActionMailer::TestCase

  test "invitation_email" do
    scoreboard = scoreboards(:scoreboard_a)
    mail = InvitationMailer.send_invitation(scoreboard, email)
    assert_equal "Invitation", mail.subject
    assert_equal [email], mail.to
    assert_equal ["noreply@scorecliq.com"], mail.from
    assert_match CGI::escape(email),    mail.body.encoded
  end


end

当我尝试运行另一个测试时,我遇到了这个错误。我确信这不是一个测试错误,它的完全不同。有没有人遇到过这样的错误。有关如何修复错误的任何建议都会很棒。

0 个答案:

没有答案