mirror of
https://github.com/athityakumar/colorls.git
synced 2024-09-19 05:31:23 +02:00
17 lines
395 B
Ruby
17 lines
395 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'colorls/monkeys'
|
|
|
|
RSpec.describe String do # rubocop:disable RSpec/FilePath
|
|
describe '#uniq' do
|
|
it 'removes all duplicate characters' do
|
|
expect('abca'.uniq).to be == 'abc'
|
|
end
|
|
end
|
|
|
|
describe String, '#colorize' do
|
|
it 'colors a string with red' do
|
|
expect('hello'.colorize(:red)).to be == Rainbow('hello').red
|
|
end
|
|
end
|
|
end
|