[rspec-devel] Fwd: Your message to rspec-users awaits moderator approval
dchelimsky at gmail.com
Wed Mar 12 17:49:03 EDT 2008
On Wed, Mar 12, 2008 at 7:48 PM, Matt Aimonetti <matt at aimonetti.net> wrote:
> I recently forked the swx on rails plugin to fix few issues
> One of my problem is that RSpec totally freaks out because of the following
> ActionController::Base.class_eval do
> def render_with_swx(options = nil, &block)
> if options.is_a?(Hash) && options.keys.include?(:swx)
> swf_bytecode = SwxAssembler.write_swf(
> send_data(swf_bytecode, :type => 'application/swf', :filename =>
> render_without_swx(options, &block)
> alias_method_chain :render, :swx
> The problem is that rspec_on_rails subclasses render and passes 3 arguments(
> `render' ) when the usual render method only has 2 arguments.
That's true as of 2.0, but before that it had 3 arguments.
rspec_on_rails is still supporting rails back to 1.2.3.
> That's obviously a major problem for me and I was wondering if there was a
> workaround that issue.
What version are you using? What you're talking about is not on line
189 in controller_example_group in HEAD.
> rspec-devel mailing list
> rspec-devel at rubyforge.org
More information about the rspec-devel