Sha256: 62dc49828486c9ee2fa364cdd3e6adda5ed4daf33c911d3e1b7df503e7d47ad3
Contents?: true
Size: 783 Bytes
Versions: 1
Compression:
Stored size: 783 Bytes
Contents
require 'spec_helper' require_relative '../support/vertical_spacing_cases' require 'tailor/critic' require 'tailor/configuration/style' describe 'Vertical Space problem detection' do before do allow(Tailor::Logger).to receive(:log) FakeFS.activate! end let(:critic) do Tailor::Critic.new end let(:style) do style = Tailor::Configuration::Style.new style.trailing_newlines 0, level: :off style.allow_invalid_ruby true, level: :off style end V_SPACING_OK.each do |file_name, contents| before do FileUtils.touch file_name File.open(file_name, 'w') { |f| f.write contents } end it 'is OK' do critic.check_file(file_name, style.to_hash) expect(critic.problems).to eq(file_name => []) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tailor-1.4.1 | spec/functional/vertical_spacing_spec.rb |