Skip to content

Instantly share code, notes, and snippets.

@docwhat
Created September 26, 2011 20:39
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 docwhat/1243328 to your computer and use it in GitHub Desktop.
Save docwhat/1243328 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe MywidgetWidget do
has_widgets do |root|
root << widget(:mywidget)
end
it "says hello world" do
render_widget :mywidget
response.should match /Hello, World!/
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment