Sha256: be1b8b59b714bd4f5b9a0377a9059c1268ff37364e7de7d264f188857a688545

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

require 'test_helper'

class HelperTest < ActionView::TestCase
  test 'link_to_back first time' do
    assert_equal "<a href=\"javascript:history.back()\">Back</a>",
      link_to_back
  end

  LinkToAction.use_classes
  test 'link_to_back first time with classes' do
    LinkToAction.use_classes = true
    assert_equal "<a href=\"javascript:history.back()\" class=\"btn\">Back</a>",
      link_to_back
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
link_to_action-0.1.1 test/helpers_test.rb