makes 'pending' filter the default in /moderation
This commit is contained in:
@@ -102,8 +102,8 @@ feature 'Moderate Comments' do
|
||||
|
||||
scenario "Current filter is properly highlighted" do
|
||||
visit moderation_comments_path
|
||||
expect(page).to_not have_link('All')
|
||||
expect(page).to have_link('Pending')
|
||||
expect(page).to_not have_link('Pending')
|
||||
expect(page).to have_link('All')
|
||||
expect(page).to have_link('Ignored')
|
||||
|
||||
visit moderation_comments_path(filter: 'all')
|
||||
@@ -191,6 +191,8 @@ feature 'Moderate Comments' do
|
||||
|
||||
expect(current_path).to eq(moderation_comments_path)
|
||||
|
||||
click_link('Ignored')
|
||||
|
||||
within("#comment_#{@comment.id}") do
|
||||
expect(page).to have_content('Ignored')
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user