Skip to content

Commit

Permalink
Leave the products per page alone!
Browse files Browse the repository at this point in the history
  • Loading branch information
Willianvdv committed Dec 28, 2013
1 parent 2cd6a46 commit 7e67f5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/features/taxon_with_properties_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

context 'product are paginated' do
it 'should ignore pagination' do
products_per_page = Spree::Config.products_per_page
Spree::Config.products_per_page = 1
visit "/t/#{taxon.permalink}"

Expand All @@ -43,6 +44,7 @@
within('.checkbox-label[for="red"]') do
page.should have_content("(1)")
end
Spree::Config.products_per_page = products_per_page
end
end
end

2 comments on commit 7e67f5c

@justame
Copy link

@justame justame commented on 7e67f5c Jan 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try to move to the second page and the bug will pop out,
in the first page everything is good but when you try to move to the second page, then the counts does't work well

@Willianvdv
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@justame thanks, I'll have a look!

Please sign in to comment.