cleans format

This commit is contained in:
Juanjo Bazán
2016-01-15 11:10:58 +01:00
parent 0c6e21aa59
commit d31c846a1f
2 changed files with 17 additions and 21 deletions

View File

@@ -674,21 +674,18 @@ describe Debate do
end
end
end
describe "#last_week" do
it "should return debates created this week" do
debate = create(:debate)
expect(Debate.last_week.all).to include (debate)
end
it "should not show debates created more than a week ago" do
debate = create(:debate, created_at: 8.days.ago)
expect(Debate.last_week.all).to_not include (debate)
end
debate = create(:debate)
expect(Debate.last_week.all).to include (debate)
end
it "should not show debates created more than a week ago" do
debate = create(:debate, created_at: 8.days.ago)
expect(Debate.last_week.all).to_not include (debate)
end
end
end

View File

@@ -612,19 +612,18 @@ describe Proposal do
end
end
end
describe "#last_week" do
it "should return proposal created this week" do
proposal = create(:proposal)
expect(Proposal.last_week.all).to include (proposal)
end
it "should not show proposals created more than a week ago" do
proposal = create(:proposal, created_at: 8.days.ago)
expect(Proposal.last_week.all).to_not include (proposal)
end
describe "#last_week" do
it "should return proposals created this week" do
proposal = create(:proposal)
expect(Proposal.last_week.all).to include (proposal)
end
it "should not show proposals created more than a week ago" do
proposal = create(:proposal, created_at: 8.days.ago)
expect(Proposal.last_week.all).to_not include (proposal)
end
end
end