a file named "spec/views/widgets/prototype_update.html.erb_spec.rb" with:

require "spec_helper"
describe "render a Prototype helper update" do
it "hides the status indicator" do
render :update do |page|
page.hide 'status-indicator'
end
rendered.should contain("Element.hide(\"status-indicator\")")
end
end

require 'spec_helper'
describe 'secrets/index.html.erb' do
before do
controller.singleton_class.class_eval do
protected
def admin?
true
end
helper_method :admin?
end
end
it 'checks for admin access' do
render
rendered.should contain('Secret admin area')
end
end