aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-07-17 22:39:36 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-07-17 22:39:36 -0700
commitec17fca48fb6983af33fec3c0e1b0db2fdf6e3c6 (patch)
tree4d574ed4e33e941b443dc8b620800cf2a6f273b8
parente7485752e6fb6dce59362ec4320876c59b027e96 (diff)
parentd49c00027ec8aec1e51f2190abf641e33813c7da (diff)
downloadrails-ec17fca48fb6983af33fec3c0e1b0db2fdf6e3c6.tar.gz
rails-ec17fca48fb6983af33fec3c0e1b0db2fdf6e3c6.tar.bz2
rails-ec17fca48fb6983af33fec3c0e1b0db2fdf6e3c6.zip
Merge pull request #159 from rajcybage/my_fix
fixes the test case of that plugins
-rw-r--r--guides/source/plugins.md8
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