Sha256: d13318bc3607dae8827bf926bbe10d8e89bbcc8aabac180a27cc7b3e37d9334a
Contents?: true
Size: 755 Bytes
Versions: 3
Compression:
Stored size: 755 Bytes
Contents
require 'spec_helper' require_relative '../support/naming_cases' require 'tailor/critic' require 'tailor/configuration/style' describe 'Naming 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 NAMING_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/naming_spec.rb |
tailor-1.3.1 | spec/functional/naming_spec.rb |
tailor-1.3.0 | spec/functional/naming_spec.rb |