[rspec-users] May expect { ... }.to_not be changed to expect { ... }.not_to?

Takumi Tsunokake tyanat.syadan.bekrob at gmail.com
Tue Sep 7 23:35:08 EDT 2010


Hi, I'm Takumi Tsunokake.

I think
    expect { ... }.not_to rails_error
is more grammatical and natural than
    expect { ... }.to_not rails_error

Are there any backgrounds and reasons of decision for expect
{ ... }.to_not, not expect { ... }.not_to?

I'm happy if expect { ... }.to_not is changed to expect
{ ... }.not_to.

Best Regards :)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Takumi Tsunokake
http://d.hatena.ne.jp/bekkou68/
@bekkou68


More information about the rspec-users mailing list