Sha256: e61a8806823797fac6e8f201ef7d60bb76f5e25d6d98cbc78b0b994a366fd960

Contents?: true

Size: 433 Bytes

Versions: 4

Compression:

Stored size: 433 Bytes

Contents

# encoding: utf-8
require "spec_helper"

module Corrector
  describe Word do

    it "is a kind of Corrector::Base" do
      expect(subject).to be_kind_of Corrector::Base
    end

    describe "#valid?" do

      subject { build :word }
      before  { expect(subject).to be_valid }

      it "fails when #from has spaces" do
        subject.from = "РАЗ ДВА"
        expect(subject).not_to be_valid
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
corrector-0.1.0 spec/models/corrector/word_spec.rb
corrector-0.0.3 spec/models/corrector/word_spec.rb
corrector-0.0.2 spec/models/corrector/word_spec.rb
corrector-0.0.1 spec/models/corrector/word_spec.rb