Skip to content

Commit

Permalink
Add pending test for page_entries_info in Action View context
Browse files Browse the repository at this point in the history
This exercises the actual `translate` helper in Rails. Unfortunately,
it's currently broken for Rails 6.1.
  • Loading branch information
mislav committed Feb 16, 2021
1 parent fae2557 commit e168960
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/view_helpers/action_view_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,16 @@ def renderer.gap() '<span class="my-gap">~~</span>' end
end
end

# TODO: re-enable once Rails 6.1.2 ships
xit "page_entries_info" do
@template = "<%= page_entries_info collection, options %>"
output = render(
collection: WillPaginate::Collection.new(1, 1, 3),
options: {html: false},
)
output.should == "Displaying entries 1 - 0 of 3 in total"
end

private

def translation(data)
Expand Down

0 comments on commit e168960

Please sign in to comment.