require "spec_helper"

module Ayi
  describe AbstractStrategy do
    it { should respond_to :match_file_name? }

    it "by default does nothing" do
      subject.match_file_name?("example.rb").should be_false
      subject.match_file_name?("hello/world.rb").should be_false
      subject.match_file_name?('readme.md').should be_false
    end

    describe "cleanup" do
      it "does nothing" do
        subject.cleanup(encountered(:trailing_whitespace)).should == encountered(:trailing_whitespace)
        subject.cleanup(encountered(:tabs)).should == encountered(:tabs)
      end
    end
  end
end
