spec/tty/shell/question/modifier/letter_case_spec.rb in tty-0.0.11 vs spec/tty/shell/question/modifier/letter_case_spec.rb in tty-0.1.0

- old
+ new

@@ -1,6 +1,6 @@ -# -*- encoding: utf-8 -*- +# encoding: utf-8 require 'spec_helper' describe TTY::Shell::Question::Modifier, '#letter_case' do let(:string) { 'text to modify' } @@ -8,20 +8,20 @@ subject { described_class.letter_case modifier, string} context 'when upper case' do let(:modifier) { :up } - it { should == 'TEXT TO MODIFY' } + it { is_expected.to eq('TEXT TO MODIFY') } end context 'when lower case' do let(:modifier) { :down } - it { should == 'text to modify'} + it { is_expected.to eq('text to modify') } end context 'when capitalize' do let(:modifier) { :capitalize } - it { should == 'Text to modify'} + it { is_expected.to eq('Text to modify') } end end # lettercase