Sha256: d71e8ff1544542ba1f091a328cc74fb776d91ee4ca627c471dfca907dfe3b3e5

Contents?: true

Size: 680 Bytes

Versions: 30

Compression:

Stored size: 680 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

class ViewHooksTest < ActionDispatch::IntegrationTest
  
  def test_hooks_rendering
    CmsAdmin::SitesController.append_view_path(File.expand_path('../fixtures/views', File.dirname(__FILE__)))
    ComfortableMexicanSofa::ViewHooks.add(:navigation, '/nav_hook')
    
    http_auth :get, cms_admin_sites_path
    assert_response :success
    assert_match /hook_content/, response.body
  end
  
  def test_hooks_rendering_with_no_hook
    ComfortableMexicanSofa::ViewHooks.remove(:navigation)
    
    http_auth :get, cms_admin_sites_path
    assert_response :success
    assert_no_match /hook_content/, response.body
  end
  
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.0.36 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.35 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.34 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.33 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.32 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.31 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.30 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.29 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.28 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.27 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.26 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.25 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.24 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.23 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.22 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.21 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.20 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.19 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.18 test/integration/view_hooks_test.rb
comfortable_mexican_sofa-1.0.17 test/integration/view_hooks_test.rb