Skip to content

Instantly share code, notes, and snippets.

@rcdilorenzo
Created July 18, 2012 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcdilorenzo/3137155 to your computer and use it in GitHub Desktop.
Save rcdilorenzo/3137155 to your computer and use it in GitHub Desktop.
Ruby Test Unit to Rspec Helper
def assert_equal(a, b)
puts "#{a}.should == #{b}"
end
def assert_not_nil(a)
puts "#{a}.should_not == nil"
end
def assert_raise(*all_args)
puts "Cannot convert assert_raise"
end
def assert(*all_args)
puts "Cannot convert assert()"
end
def assert_not_equal(a, b)
puts "#{a}.should_not == #{b}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment