Sha256: 636915d80e84576fbb539858e2dfb6db8f0d6097dfc4f1b045288b45fb669383

Contents?: true

Size: 313 Bytes

Versions: 4

Compression:

Stored size: 313 Bytes

Contents

require 'test_helper'

class MountainView::ComponentHelperTest < ActionView::TestCase
  test "renders the proper component" do
    rendered = render_component("header", id: 1, title: "Pepe")

    expected = /Pepe/

    assert_match expected, rendered
    assert_match /href=\"\/products\/1\"/, rendered
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mountain_view-0.8.1 test/helpers/mountain_view/component_helper_test.rb
mountain_view-0.8.0 test/helpers/mountain_view/component_helper_test.rb
mountain_view-0.7.1 test/helpers/mountain_view/component_helper_test.rb
mountain_view-0.7.0 test/helpers/mountain_view/component_helper_test.rb