diff options
author | mms <git@sapka.me> | 2024-11-14 22:34:47 +0100 |
---|---|---|
committer | mms <git@sapka.me> | 2024-11-14 22:34:57 +0100 |
commit | 8c084e0faa971e6db265ea39aefb8cf07e39de43 (patch) | |
tree | 899e4f6f8e7e33ab01d09ad917c86fd32944a4bb /spec/lib/helpers_spec.rb | |
parent | 4d87cb470b2c306c126d2d739d50577702374926 (diff) |
chore: add specs for all classes
Diffstat (limited to 'spec/lib/helpers_spec.rb')
-rw-r--r-- | spec/lib/helpers_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/lib/helpers_spec.rb b/spec/lib/helpers_spec.rb new file mode 100644 index 0000000..5b841e4 --- /dev/null +++ b/spec/lib/helpers_spec.rb @@ -0,0 +1,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 |