Removes debates default order

This commit is contained in:
kikito
2015-09-04 11:51:21 +02:00
parent 19e6740ee4
commit 134f38a38f
2 changed files with 0 additions and 11 deletions

View File

@@ -174,15 +174,6 @@ describe Debate do
end
end
describe '#default_order' do
let!(:economy) { create(:debate) }
let!(:health) { create(:debate) }
it "returns debates ordered by last one first" do
expect(Debate.all).to eq([health, economy])
end
end
describe '#anonymous_votes_ratio' do
it "returns the percentage of anonymous votes of the total votes" do
debate = create(:debate, cached_anonymous_votes_total: 25, cached_votes_total: 100)