lib/spec/rails/example/helper_example_group.rb in dchelimsky-rspec-rails-1.1.11.7 vs lib/spec/rails/example/helper_example_group.rb in dchelimsky-rspec-rails-1.1.12

- old
+ new

@@ -24,10 +24,12 @@ # Thing.should_receive(:count).and_return(37) # number_of_things.should == 37 # end # end class HelperExampleGroup < FunctionalExampleGroup + attr_accessor :output_buffer + class HelperObject < ActionView::Base def protect_against_forgery? false end @@ -115,11 +117,13 @@ @controller.request = @request @controller.url = ActionController::UrlRewriter.new @request, {} # url_for @flash = ActionController::Flash::FlashHash.new session['flash'] = @flash - + + @output_buffer = "" + @template = helper ActionView::Helpers::AssetTagHelper::reset_javascript_include_default helper.session = session helper.request = @request helper.flash = flash @@ -159,12 +163,9 @@ end class HelperExampleGroupController < ApplicationController #:nodoc: attr_accessor :request, :url - - # Re-raise errors - def rescue_action(e); raise e; end end end end end