Sha256: ca3aa5e00174a770aca41fb27a765df9cf9aaada6f1735cdbec36888fee183c5
Contents?: true
Size: 843 Bytes
Versions: 2
Compression:
Stored size: 843 Bytes
Contents
require_relative '../../spec_helper' require 'tailor/rulers/spaces_after_comma_ruler' describe Tailor::Rulers::SpacesAfterCommaRuler do subject { Tailor::Rulers::SpacesAfterCommaRuler.new({}) } describe "#comma_update" do it "adds the column number to @comma_columns" do subject.comma_update(",", 2, 1) subject.instance_variable_get(:@comma_columns).should == [1] end end describe "#check_spaces_after_comma" do context "no event after comma" do let(:lexed_line) do l = double "LexedLine" l.stub(:event_at) l.stub(:index) l end it "doesn't detect any problems" do Tailor::Problem.should_not_receive(:new) expect { subject.check_spaces_after_comma(lexed_line, 1) }. to_not raise_error end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tailor-1.0.0.alpha2 | spec/tailor/rulers/spaces_after_comma_spec.rb |
tailor-1.0.0.alpha | spec/tailor/rulers/spaces_after_comma_spec.rb |