Sha256: b5812cd5c5cfc5b9c75e356b57dfedac717556ec8fe99c965bfb02a7a21b5b66
Contents?: true
Size: 776 Bytes
Versions: 3
Compression:
Stored size: 776 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 Tailor::Logger.stub(: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 'should be OK' do critic.check_file(file_name, style.to_hash) critic.problems.should == { file_name => [] } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tailor-1.4.0 | spec/functional/vertical_spacing_spec.rb |
tailor-1.3.1 | spec/functional/vertical_spacing_spec.rb |
tailor-1.3.0 | spec/functional/vertical_spacing_spec.rb |