aboutsummaryrefslogtreecommitdiff
path: root/spec/lib/helpers_spec.rb
blob: 5b841e401fbe4f63a6d788ee8247149e8b617000 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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