Sha256: 6d7f593ce6bb2d605008318f715873ebb0ffb94432037feb434f8cdf3760d21e

Contents?: true

Size: 393 Bytes

Versions: 5

Compression:

Stored size: 393 Bytes

Contents

require 'spec_helper'

describe Suspiciouss::Suggestions::Indentation do

  subject { described_class.new.parse(line) }

  describe '#parse' do

    context 'invalid' do
      let(:line) { '        .please-dont {}' }

      it { should eq "Indentation is too damn high" }
    end

    context 'valid' do
      let(:line) { '      .thank-you {}' }

      it { should be_nil }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
suspiciouss-0.1.4 spec/suggestions/indentation_spec.rb
suspiciouss-0.1.3 spec/suggestions/indentation_spec.rb
suspiciouss-0.1.2 spec/suggestions/indentation_spec.rb
suspiciouss-0.1.1 spec/suggestions/indentation_spec.rb
suspiciouss-0.1 spec/suggestions/indentation_spec.rb