Created
February 20, 2011 14:43
-
-
Save mreinsch/836020 to your computer and use it in GitHub Desktop.
a very simple test example using shoulda, response to http://www.oiax.jp/rails/zakkan/test_unit_rspec_and_shoulda.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'shoulda' | |
class SimpleTest < Test::Unit::TestCase | |
context 'with 100' do | |
setup { @total = 100 } | |
should("return 100") { assert_equal(100, @total.to_i) } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment