atzorvas/ccradio

View on GitHub
test/helpers/application_helper_test.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'test_helper'
 
class ApplicationHelperTest < ActionView::TestCase
Prefer single-quoted strings when you don't need string interpolation or special symbols.
test "bootstrap class helper" do
Prefer 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"
end
end