aboutsummaryrefslogtreecommitdiff
path: root/spec/lib/helpers_spec.rb
blob: c2f21f32e0d38768460a587af2c68b6341060906 (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