private method をテストする方法

@obj.send(:private_method, args)

と書くとテストできる。 rails のspec書くときに何度もハマった。

expect を should の代わりに使うには

expect(foo).to eq(bar)
expect(foo).not_to eq(bar)