Skip to content

Commit 199f7b0

Browse files
committed
strip inside #expect_template_result
1 parent 0c33693 commit 199f7b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby-2.1.3
1+
ruby-2.1.5

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).to eq(expected)
40+
expect(actual.strip).to eq(expected.strip)
4141
end
4242
end
4343
end

0 commit comments

Comments
 (0)