spec/unit/errors_spec.rb in locomotivecms_steam-1.2.1 vs spec/unit/errors_spec.rb in locomotivecms_steam-1.3.0.rc1
- old
+ new
@@ -1,8 +1,8 @@
require 'spec_helper'
-describe Locomotive::Steam::RenderError do
+describe Locomotive::Steam::ParsingRenderingError do
let(:message) { 'Wrong syntax' }
let(:file) { 'template.liquid.haml' }
let(:source) { %w(a b c d e f g h i j k l m n o p q r s t u v w y z).join("\n") }
let(:line) { 10 }
@@ -11,10 +11,10 @@
describe '#code_lines' do
subject { error.code_lines }
- it { is_expected.to eq [[5, 'f'], [6, 'g'], [7, 'h'], [8, 'i'], [9, 'j'], [10, 'k'], [11, 'l'], [12, 'm'], [13, 'n'], [14, 'o'], [15, 'p']] }
+ it { is_expected.to eq [[5, 'e'], [6, 'f'], [7, 'g'], [8, 'h'], [9, 'i'], [10, 'j'], [11, 'k'], [12, 'l'], [13, 'm'], [14, 'n'], [15, 'o']] }
end
describe '#backtrace' do