Sha256: 29762dba602c543f657b090000f2ef45dbec02858d4644d2daea6e0fe187a084

Contents?: true

Size: 291 Bytes

Versions: 7

Compression:

Stored size: 291 Bytes

Contents

require 'spec_helper'

describe RailsBestPractices::Core::Error do
  it "should return error with filename, line number and message" do
    RailsBestPractices::Core::Error.new("app/models/user.rb", 100, "not good", "BogusReview").to_s.should == "app/models/user.rb:100 - not good"
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails_best_practices-1.5.3 spec/rails_best_practices/core/error_spec.rb
rails_best_practices-1.5.2 spec/rails_best_practices/core/error_spec.rb
rails_best_practices-1.5.1 spec/rails_best_practices/core/error_spec.rb
rails_best_practices-1.5.0 spec/rails_best_practices/core/error_spec.rb
rails_best_practices-1.4.0 spec/rails_best_practices/core/error_spec.rb
rails_best_practices-1.3.0 spec/rails_best_practices/core/error_spec.rb
rails_best_practices-1.2.0 spec/rails_best_practices/core/error_spec.rb