Skip to content

Commit 371aa30

Browse files
committed
fix #expected_template_result by calling #to_s before #strip
1 parent 7b26ad9 commit 371aa30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/liquid-rails/rspec/view_controller_context.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def expect_template_result(template, expected, assigns={})
3737
end
3838

3939
actual = Liquid::Template.parse(template).render!(context)
40-
expect(actual.strip).to eq(expected.strip)
40+
expect(actual.to_s.strip).to eq(expected.to_s.strip)
4141
end
4242
end
4343
end

0 commit comments

Comments
 (0)