Created
January 5, 2011 06:08
-
-
Save wireframe/765996 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BlogTest < Test::Unit::TestCase | |
register_fixture :a_basic_user do | |
User.new | |
end | |
register_fixture :a_basic_blog do | |
Blog.new | |
end | |
with :a_basic_user, :a_basic_blog do | |
setup 'executing @a_basic_user.do_something' do | |
@a_basic_user.do_something | |
end | |
should 'have did_something?' do | |
@a_basic_user.did_something? | |
end | |
should_not 'have did_something_else?' do | |
@a_basic_user.did_something_else? | |
end | |
should 'do some other stuff, but not yet implemented' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment