Doc updates

This commit is contained in:
Ryan McGeary 2008-08-31 23:03:52 -04:00
parent dab4badd0b
commit 6bc83d72a0
3 changed files with 9 additions and 10 deletions

View File

@ -73,7 +73,7 @@ Quick macro tests for your ActiveRecord associations and validations:
Makes TDD so much easier.
=== Controller Tests (ThoughtBot::Shoulda::Controller::ClassMethods)
=== Controller Tests (ThoughtBot::Shoulda::Controller::Macros)
Macros to test the most common controller patterns...
@ -109,7 +109,6 @@ should_be_restful generates 40 tests on the fly, for both html and xml requests.
More to come here, but have fun with what's there.
load_all_fixtures
assert_same_elements([:a, :b, :c], [:c, :a, :b])
assert_contains(['a', '1'], /\d/)
assert_contains(['a', '1'], 'a')

View File

@ -1,6 +1,6 @@
module ThoughtBot
module Shoulda
module ActionMailer
module ThoughtBot # :nodoc:
module Shoulda # :nodoc:
module ActionMailer # :nodoc:
module Assertions
# Asserts that an email was delivered. Can take a block that can further
# narrow down the types of emails you're expecting.

View File

@ -1,22 +1,22 @@
module Thoughtbot
module Thoughtbot # :nodoc:
module Shoulda
VERSION = '1.1.1'
class << self
attr_accessor :contexts
def contexts
def contexts # :nodoc:
@contexts ||= []
end
def current_context
def current_context # :nodoc:
self.contexts.last
end
def add_context(context)
def add_context(context) # :nodoc:
self.contexts.push(context)
end
def remove_context
def remove_context # :nodoc:
self.contexts.pop
end
end