Skip to content

Instantly share code, notes, and snippets.

@janx
Created November 17, 2009 08:01
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 janx/236764 to your computer and use it in GitHub Desktop.
Save janx/236764 to your computer and use it in GitHub Desktop.
# spec/helper/random_form_builder_spec.rb
describe RandomFormBuilder do
attr_reader :builder, :helper
before do
@helper = Object.extend(ActionView::Helpers::FormHelper)
@object = stub_model(Random)
@builder = RandomFormBuilder.new(:random, @object, @helper, {}, nil)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment