diff options
author | Rajarshi Das <rajarshid@cybage.com> | 2013-07-18 11:04:21 +0530 |
---|---|---|
committer | Rajarshi Das <rajarshid@cybage.com> | 2013-07-18 11:04:21 +0530 |
commit | d49c00027ec8aec1e51f2190abf641e33813c7da (patch) | |
tree | 4d574ed4e33e941b443dc8b620800cf2a6f273b8 /guides/source | |
parent | e7485752e6fb6dce59362ec4320876c59b027e96 (diff) | |
download | rails-d49c00027ec8aec1e51f2190abf641e33813c7da.tar.gz rails-d49c00027ec8aec1e51f2190abf641e33813c7da.tar.bz2 rails-d49c00027ec8aec1e51f2190abf641e33813c7da.zip |
fixes the test case of that plugins
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/plugins.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/guides/source/plugins.md b/guides/source/plugins.md index 695f25f8a9..9077e424c8 100644 --- a/guides/source/plugins.md +++ b/guides/source/plugins.md @@ -68,7 +68,7 @@ In this example you will add a method to String named `to_squawk`. To begin, cre require 'test_helper' -class CoreExtTest < Test::Unit::TestCase +class CoreExtTest < ActiveSupport::TestCase def test_to_squawk_prepends_the_word_squawk assert_equal "squawk! Hello World", "Hello World".to_squawk end @@ -136,7 +136,7 @@ To begin, set up your files so that you have: require 'test_helper' -class ActsAsYaffleTest < Test::Unit::TestCase +class ActsAsYaffleTest < ActiveSupport::TestCase end ``` @@ -173,7 +173,7 @@ To start out, write a failing test that shows the behavior you'd like: require 'test_helper' -class ActsAsYaffleTest < Test::Unit::TestCase +class ActsAsYaffleTest < ActiveSupport::TestCase def test_a_hickwalls_yaffle_text_field_should_be_last_squawk assert_equal "last_squawk", Hickwall.yaffle_text_field @@ -321,7 +321,7 @@ To start out, write a failing test that shows the behavior you'd like: # yaffle/test/acts_as_yaffle_test.rb require 'test_helper' -class ActsAsYaffleTest < Test::Unit::TestCase +class ActsAsYaffleTest < ActiveSupport::TestCase def test_a_hickwalls_yaffle_text_field_should_be_last_squawk assert_equal "last_squawk", Hickwall.yaffle_text_field |