def self.verify_the_order_of_channels(firstwebapp,secondwebapp,firstmobileapp,secondmobileapp)
expect(firstmobileapp).to be > firstwebapp
expect(firstmobileapp).to be > secondwebapp
end
答案 0 :(得分:1)
firstmobileapp
正在nil
传递,>
未定义nil
。你需要查看调用verify_the_order_of_channels
的任何内容并查看它为什么通过nil
,或者重写期望首先检查nil(当它为零时会出错,你和# 39; ll仍然要弄清楚为什么它被传递为nil)
def self.verify_the_order_of_channels(firstwebapp,secondwebapp,firstmobileapp,secondmobileapp)
expect(firstmobileapp).not_to be_nil
expect(firstmobileapp).to be > firstwebapp
...
end