Sha256: 49d5f006c22bf2ed1f79c4d16ec13b373f7d4d18db40d9d6f350a07029d02630

Contents?: true

Size: 315 Bytes

Versions: 3

Compression:

Stored size: 315 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 %r(href=\"\/products\/1\"), rendered
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mountain_view-0.10.0 test/helpers/mountain_view/component_helper_test.rb
mountain_view-0.9.1 test/helpers/mountain_view/component_helper_test.rb
mountain_view-0.9.0 test/helpers/mountain_view/component_helper_test.rb