Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Convert README to Markdown.

  • Loading branch information...
commit fbd3c78bfc1203d95bd023ea897c2f72f2b76dc7 1 parent 327b6b1
@gabebw gabebw authored
Showing with 54 additions and 54 deletions.
  1. +54 −0 README.md
  2. +0 −54 README.rdoc
View
54 README.md
@@ -0,0 +1,54 @@
+# shoulda-context
+
+[Official Documentation](http://rubydoc.info/github/thoughtbot/shoulda-context/master/frames)
+
+Shoulda's contexts make it easy to write understandable and maintainable tests for Test::Unit.
+It's fully compatible with your existing tests in Test::Unit, and requires no retooling to use.
+
+Refer to the [shoulda](https://github.com/thoughtbot/shoulda) gem if you want to know more
+about using shoulda with Rails or RSpec.
+
+## Contexts
+
+Instead of writing Ruby methods with `lots_of_underscores`, shoulda-context adds
+context, setup, and should blocks...
+
+ class CalculatorTest < Test::Unit::TestCase
+ context "a calculator" do
+ setup do
+ @calculator = Calculator.new
+ end
+
+ should "add two numbers for the sum" do
+ assert_equal 4, @calculator.sum(2, 2)
+ end
+
+ should "multiply two numbers for the product" do
+ assert_equal 10, @calculator.product(2, 5)
+ end
+ end
+ end
+
+... which combine to produce the following test methods:
+
+ "test: a calculator should add two numbers for the sum."
+ "test: a calculator should multiply two numbers for the product."
+
+## Assertions
+
+It also has two additional Test::Unit assertions for working with Ruby's Array:
+
+ assert_same_elements([:a, :b, :c], [:c, :a, :b])
+ assert_contains(['a', '1'], /\d/)
+ assert_contains(['a', '1'], 'a')
+
+## Credits
+
+Shoulda is maintained and funded by [thoughtbot](http://thoughtbot.com/community).
+shoulda-context is maintained by [Travis Jeffery](https://github.com/travisjeffery).
+Thank you to all the [contributors](https://github.com/thoughtbot/shoulda-context/contributors).
+
+## License
+
+Shoulda is Copyright © 2006-2012 thoughtbot, inc.
+It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.
View
54 README.rdoc
@@ -1,54 +0,0 @@
-= shoulda-context
-
-{Official Documentation}[http://rubydoc.info/github/thoughtbot/shoulda-context/master/frames]
-
-Shoulda's contexts make it easy to write understandable and maintainable tests for Test::Unit.
-It's fully compatible with your existing tests in Test::Unit, and requires no retooling to use.
-
-Refer to the {shoulda}[https://github.com/thoughtbot/shoulda] gem if you want to know more
-about using shoulda with Rails or RSpec.
-
-== Contexts
-
-Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
-context, setup, and should blocks...
-
- class CalculatorTest < Test::Unit::TestCase
- context "a calculator" do
- setup do
- @calculator = Calculator.new
- end
-
- should "add two numbers for the sum" do
- assert_equal 4, @calculator.sum(2, 2)
- end
-
- should "multiply two numbers for the product" do
- assert_equal 10, @calculator.product(2, 5)
- end
- end
- end
-
-... which combine to produce the following test methods:
-
- "test: a calculator should add two numbers for the sum."
- "test: a calculator should multiply two numbers for the product."
-
-== Assertions
-
-It also has two additional Test::Unit assertions for working with Ruby's Array:
-
- assert_same_elements([:a, :b, :c], [:c, :a, :b])
- assert_contains(['a', '1'], /\d/)
- assert_contains(['a', '1'], 'a')
-
-= Credits
-
-Shoulda is maintained and funded by {thoughtbot}[http://thoughtbot.com/community].
-shoulda-context is maintained by {Travis Jeffery}[https://github.com/travisjeffery].
-Thank you to all the {contributors}[https://github.com/thoughtbot/shoulda-context/contributors].
-
-= License
-
-Shoulda is Copyright © 2006-2012 thoughtbot, inc.
-It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.
Please sign in to comment.
Something went wrong with that request. Please try again.