Skip to content

Commit

Permalink
fixes the test case of that plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajarshi Das committed Jul 18, 2013
1 parent e748575 commit d49c000
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions guides/source/plugins.md
Expand Up @@ -68,7 +68,7 @@ In this example you will add a method to String named `to_squawk`. To begin, cre


require 'test_helper' require 'test_helper'


class CoreExtTest < Test::Unit::TestCase class CoreExtTest < ActiveSupport::TestCase
def test_to_squawk_prepends_the_word_squawk def test_to_squawk_prepends_the_word_squawk
assert_equal "squawk! Hello World", "Hello World".to_squawk assert_equal "squawk! Hello World", "Hello World".to_squawk
end end
Expand Down Expand Up @@ -136,7 +136,7 @@ To begin, set up your files so that you have:
require 'test_helper' require 'test_helper'
class ActsAsYaffleTest < Test::Unit::TestCase class ActsAsYaffleTest < ActiveSupport::TestCase
end end
``` ```


Expand Down Expand Up @@ -173,7 +173,7 @@ To start out, write a failing test that shows the behavior you'd like:
require 'test_helper' require 'test_helper'
class ActsAsYaffleTest < Test::Unit::TestCase class ActsAsYaffleTest < ActiveSupport::TestCase
def test_a_hickwalls_yaffle_text_field_should_be_last_squawk def test_a_hickwalls_yaffle_text_field_should_be_last_squawk
assert_equal "last_squawk", Hickwall.yaffle_text_field assert_equal "last_squawk", Hickwall.yaffle_text_field
Expand Down Expand Up @@ -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 # yaffle/test/acts_as_yaffle_test.rb
require 'test_helper' require 'test_helper'


class ActsAsYaffleTest < Test::Unit::TestCase class ActsAsYaffleTest < ActiveSupport::TestCase


def test_a_hickwalls_yaffle_text_field_should_be_last_squawk def test_a_hickwalls_yaffle_text_field_should_be_last_squawk
assert_equal "last_squawk", Hickwall.yaffle_text_field assert_equal "last_squawk", Hickwall.yaffle_text_field
Expand Down

0 comments on commit d49c000

Please sign in to comment.