为什么RSpec要打印一串大写字母F';我的终端屏幕上有什么?

为什么RSpec要打印一串大写字母F';我的终端屏幕上有什么?,rspec,Rspec,我只是试着像以前一样运行rspec,它应该会给我一个如下的输出: karenlee@Karens-MBP karen_lee % rspec #caesar_cipher encodes a simple word wraps around the alphabet encodes multiple words #digital_root calculates the digital root of a single-digit number calculates the

我只是试着像以前一样运行rspec,它应该会给我一个如下的输出:

karenlee@Karens-MBP karen_lee % rspec

#caesar_cipher
  encodes a simple word
  wraps around the alphabet
  encodes multiple words

#digital_root
  calculates the digital root of a single-digit number
  calculates the digital root of a larger number
karenlee@Karens-MBP mancala % rspec
FFFFFFFFFFFFFFFFF

Failures:

  1) Board#initialize creates a set of 14 cups
     Failure/Error: @cups = Set.new(14)

     ArgumentError:
       value must be enumerable
但当我今天运行它时,它给了我如下输出:

karenlee@Karens-MBP karen_lee % rspec

#caesar_cipher
  encodes a simple word
  wraps around the alphabet
  encodes multiple words

#digital_root
  calculates the digital root of a single-digit number
  calculates the digital root of a larger number
karenlee@Karens-MBP mancala % rspec
FFFFFFFFFFFFFFFFF

Failures:

  1) Board#initialize creates a set of 14 cups
     Failure/Error: @cups = Set.new(14)

     ArgumentError:
       value must be enumerable
另一方面,我还刚刚通过VisualStudio的LiveShare(我是主持人)进行了配对编程,我注意到每当我的合作伙伴在VS代码的共享终端屏幕上键入“rspec”时,rspec的输出就像本文中的第一个示例。那么,为什么当我在自己的机器上运行“rspec”时,它会打印出“F”的字符串,而不是像第一个示例中那样的实际规格

我仔细检查了我的gem列表,并安装了以下rspec gem(用于rspec):


此输出格式由
--format
选项控制

但是,
rspec
有另一个特性,它从项目中的
.rspec
文件中读取选项,因此您可能希望

$ cat .rspec
--color
--require rails_helper
检查rspec-h以了解更多信息

  **** Output ****

    -f, --format FORMATTER             Choose a formatter.
                                         [p]rogress (default - dots)
                                         [d]ocumentation (group and example names)
                                         [h]tml
                                         [j]son
                                         custom formatter class name

F
表示失败,用
(点)表示通过的称为
进度
格式。您的合作伙伴拥有的另一个可能是
文档

此输出格式由
--format
选项控制

但是,
rspec
有另一个特性,它从项目中的
.rspec
文件中读取选项,因此您可能希望

$ cat .rspec
--color
--require rails_helper
检查rspec-h以了解更多信息

  **** Output ****

    -f, --format FORMATTER             Choose a formatter.
                                         [p]rogress (default - dots)
                                         [d]ocumentation (group and example names)
                                         [h]tml
                                         [j]son
                                         custom formatter class name
F
表示失败,用
(点)表示通过的称为
进度
格式。你的另一个搭档可能有
文档