Sha256: b528fa1efcea9411dedbba1b51b644d04aca31317ee52bf48b2a74f2203ed266

Contents?: true

Size: 344 Bytes

Versions: 4

Compression:

Stored size: 344 Bytes

Contents

require 'spec_helper'

module CodeAnalyzer
  describe Warning do
    it "should return error with filename, line number and message" do

      expect(Warning.new(
              filename: "app/models/user.rb",
              line_number: "100",
              message: "not good").to_s).to eq "app/models/user.rb:100 - not good"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
code_analyzer-0.4.8 spec/code_analyzer/warning_spec.rb
code_analyzer-0.4.7 spec/code_analyzer/warning_spec.rb
code_analyzer-0.4.6 spec/code_analyzer/warning_spec.rb
code_analyzer-0.4.5 spec/code_analyzer/warning_spec.rb