Skip to content

Instantly share code, notes, and snippets.

@wireframe
Created January 5, 2011 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wireframe/765996 to your computer and use it in GitHub Desktop.
Save wireframe/765996 to your computer and use it in GitHub Desktop.
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