Sha256: 2d58b722b961e4366536ba3ed1a4ebe124c68a9b4dbc1920293256406f8eccf0
Contents?: true
Size: 698 Bytes
Versions: 4
Compression:
Stored size: 698 Bytes
Contents
# Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ RSpec::Rails::ViewExampleGroup::ExampleMethods.module_eval do # Ruby 1.8.x doesnt support alias_method_chain with blocks, # so we are just overwriting the whole method. def render(options={}, local_assigns={}, &block) options = {:template => _default_file_to_render} if Hash === options and options.empty? super(options, local_assigns, &block) @response = mock(:body => rendered) end end
Version data entries
4 entries across 4 versions & 1 rubygems