Sha256: 8ff89d1c47b1243ea498d88bfd114f334659e0640098fe27f6c7abf7b7abe5c3

Contents?: true

Size: 497 Bytes

Versions: 4

Compression:

Stored size: 497 Bytes

Contents

# encoding: utf-8
require "spec_helper"

module Corrector
  describe Cyrillic do

    describe ".new" do

      it "uppercases a string" do
        expect(Cyrillic.new("абвг")).to eq "АБВГ"
      end

      it "converts latin letters to cyrillic" do
        expect(Cyrillic.new("abcd")).to eq "АВСД"
      end
    end

    describe "#source" do

      it "stores a source" do
        source = "abcd"
        expect(Cyrillic.new(source).source).to eq source
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
corrector-0.1.0 spec/services/corrector/cyrillic_spec.rb
corrector-0.0.3 spec/services/corrector/cyrillic_spec.rb
corrector-0.0.2 spec/services/corrector/cyrillic_spec.rb
corrector-0.0.1 spec/services/corrector/cyrillic_spec.rb