# frozen_string_literal: true require 'rspec' require_relative '../../lib/chotto/helpers' RSpec.describe Chotto::Helpers do let(:subject) { Chotto::Helpers } describe '#header_name_from_dsl' do it { expect(subject.header_name_from_dsl('word')).to eq('Word') } it { expect(subject.header_name_from_dsl('wOrd')).to eq('Word') } it { expect(subject.header_name_from_dsl('Word')).to eq('Word') } it { expect(subject.header_name_from_dsl('many_words')).to eq('Many-Words') } end end