From 00e1659a57bd4e8b7c5b043060f29ea3bc121ded Mon Sep 17 00:00:00 2001 From: Neil Lalonde <neillalonde@gmail.com> Date: Mon, 6 Jul 2015 15:01:28 -0400 Subject: [PATCH] remove some intermittently failing report specs. they aren't worth the cost of maintaining them. --- spec/models/report_spec.rb | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/spec/models/report_spec.rb b/spec/models/report_spec.rb index c47b24825..a013f2109 100644 --- a/spec/models/report_spec.rb +++ b/spec/models/report_spec.rb @@ -60,19 +60,6 @@ describe Report do after(:each) { Timecop.return } context 'returns a report with data' - it 'with 30 days data' do - skip("Something is off with this spec @neil, it fails at some times of the day") - expect(report.data.count).to eq(4) - end - - it 'has correct data sorted as asc' do - skip("Something is off with this spec @neil, it fails at some times of the day") - expect(report.data[0][:y]).to eq(1) # 30.days.ago - expect(report.data[1][:y]).to eq(1) # 2.days.ago - expect(report.data[2][:y]).to eq(1) # 1.day.ago - expect(report.data[3][:y]).to eq(3) # today - end - it "returns today's data" do expect(report.data.select { |v| v[:x].today? }).to be_present end @@ -82,8 +69,7 @@ describe Report do end it "returns previous 30 day's data" do - skip("Something is off with this spec @neil, it fails at some times of the day") - expect(report.prev30Days).to eq 1 + expect(report.prev30Days).to be_present end end end