Sha256: 0e5ee7713f92a03047624683c16c9f32e38217a2f7bd79807bde23c200059c51

Contents?: true

Size: 571 Bytes

Versions: 11

Compression:

Stored size: 571 Bytes

Contents

require 'test_helper'
 
class StaticPagesControllerTest < ActionController::TestCase
    test "helper should return data attribute for controller" do
        get :index
        assert_equal "data-controller='StaticPages' data-action='Index'", @controller.view_context.page_data_attr
    end
end


class Fruit::BananasControllerTest < ActionController::TestCase
  test "helper should return data attribute for controller" do
        get :index
        assert_equal "data-controller='Fruit_Bananas' data-action='Index'", @controller.view_context.page_data_attr
    end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
seed_tray-0.6.0 test/helpers/data_attribute_helper_test.rb
seed_tray-0.5.0 test/helpers/data_attribute_helper_test.rb
seed_tray-0.4.1 test/helpers/data_attribute_helper_test.rb
seed_tray-0.4.0 test/helpers/data_attribute_helper_test.rb
seed_tray-0.3.0 test/helpers/data_attribute_helper_test.rb
seed_tray-0.2.3 test/helpers/data_attribute_helper_test.rb
seed_tray-0.2.2 test/helpers/data_attribute_helper_test.rb
seed_tray-0.2.1 test/helpers/data_attribute_helper_test.rb
seed_tray-0.2.0 test/helpers/data_attribute_helper_test.rb
seed_tray-0.1.2 test/helpers/data_attribute_helper_test.rb
seed_tray-0.1.1 test/helpers/data_attribute_helper_test.rb