Skip to content

Instantly share code, notes, and snippets.

@ohammersmith
Created April 28, 2009 21:17
Show Gist options
  • Save ohammersmith/103403 to your computer and use it in GitHub Desktop.
Save ohammersmith/103403 to your computer and use it in GitHub Desktop.
describe "prototype widget helper", :type => :view do
describe "tab1_link" do
it "link does some stuff" do
pending
render(:inline => "<%= tab1_link %>")
# response.should have_tag("a")
# puts "<pre>"
# puts response.body
# puts "</pre>"
response.should have_rjs(:show, 'tab1')
# response.should have_rjs(:chained_replace, "tab2")
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment