test/helpers/application_helper_test.rb
require 'test_helper' class ApplicationHelperTest < ActionView::TestCasePrefer single-quoted strings when you don't need string interpolation or special symbols. test "bootstrap class helper" doPrefer single-quoted strings when you don't need string interpolation or special symbols. assert_equal bootstrap_class_for("success"), "alert-success"Prefer single-quoted strings when you don't need string interpolation or special symbols. assert_equal bootstrap_class_for("error"), "alert-danger"Prefer single-quoted strings when you don't need string interpolation or special symbols. assert_equal bootstrap_class_for("alert"), "alert-warning"Prefer single-quoted strings when you don't need string interpolation or special symbols. assert_equal bootstrap_class_for("notice"), "alert-info"Prefer single-quoted strings when you don't need string interpolation or special symbols. assert_equal bootstrap_class_for("other"), "other" endend