Saturday, January 19

spec-converter 0.0.3

Inspired by a link Rob sent to a blog entry on converting Test::Unit to Rspec, I added the ability to convert assertions in spec-converter, as follows:

  • assert !foo with foo.should == false
  • assert foo > 20 with foo.should > 20
  • assert foo with foo.should == true
  • assert_equal y, x with x.should == y
  • assert_false foo with foo.should == false
  • assert_nil foo with foo.should == nil
  • assert_not_nil foo with foo.should.not == nil
  • assert_true foo with foo.should == true

Enjoy your conversion. ;)

0 comments: