Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.10
rubygem-haml
rubygem-haml-rails6.1.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rubygem-haml-rails6.1.patch of Package rubygem-haml
diff --git a/test/helper_test.rb b/test/helper_test.rb index 735ea1ad..dee63f77 100644 --- a/test/helper_test.rb +++ b/test/helper_test.rb @@ -262,7 +262,7 @@ HAML end def test_is_haml - assert(!ActionView::Base.new(ActionView::LookupContext.new('')).is_haml?) + assert(!ActionView::Base.new(ActionView::LookupContext.new(''), {}, ActionController::Base.new).is_haml?) assert_equal("true\n", render("= is_haml?")) end diff --git a/test/helpers_for_rails_test.rb b/test/helpers_for_rails_test.rb index 124d4c21..31c06ff5 100644 --- a/test/helpers_for_rails_test.rb +++ b/test/helpers_for_rails_test.rb @@ -33,6 +33,10 @@ class HelpersForRailsTest < Haml::TestCase def wacky_form form_tag("/foo") {"bar"} end + + def compiled_method_container + self.class + end }.new(context, {post: Post.new("Foo bar\nbaz", nil, PostErrors.new)}, ActionController::Base.new) end @@ -169,7 +173,7 @@ HAML end def test_is_haml - assert(!ActionView::Base.new(ActionView::LookupContext.new('')).is_haml?) + assert(!ActionView::Base.new(ActionView::LookupContext.new(''), {}, ActionController::Base.new).is_haml?) assert_equal("true\n", render("= is_haml?", :action_view)) assert_equal("false", @base.render(:inline => '<%= is_haml? %>')) assert_equal("false\n", render("= render :inline => '<%= is_haml? %>'", :action_view)) @@ -231,7 +235,7 @@ HAML self.class end - def _run(method, template, locals, buffer, &block) + def _run(method, template, locals, buffer, **kwargs, &block) @current_template = template @output_buffer = buffer send(method, locals, buffer, &block) diff --git a/test/template_test.rb b/test/template_test.rb index ef8750f2..f77774ab 100644 --- a/test/template_test.rb +++ b/test/template_test.rb @@ -24,7 +24,7 @@ class TemplateTest < Haml::TestCase vars = { 'article' => Article.new, 'foo' => 'value one' } context = ActionView::LookupContext.new(TemplateTestHelper::TEMPLATE_PATH) - base = ActionView::Base.new(context, vars) + base = ActionView::Base.new(context, vars, ActionController::Base.new) # This is needed by RJS in (at least) Rails 3 base.instance_variable_set(:@template, base) diff --git a/test/test_helper.rb b/test/test_helper.rb index f7432e7b..f4b622f8 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -92,7 +92,7 @@ class Haml::TestCase < BASE_TEST_CLASS def compiled_method_container self.class end - end.new(ActionView::LookupContext.new('')) + end.new(ActionView::LookupContext.new(''), {}, ActionController::Base.new) end def self.error(*args)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor