spec/gratitude/payday_spec.rb in gratitude-0.0.11 vs spec/gratitude/payday_spec.rb in gratitude-0.0.12

- old
+ new

@@ -39,20 +39,20 @@ expect(Gratitude::Payday.sort_by_ts_end.first.ts_end) .to be > (Gratitude::Payday.sort_by_ts_end.last.ts_end) end end - describe "#most_recent" do + describe "#newest" do it "returns the most recent payday" do - expect(Gratitude::Payday.most_recent) + expect(Gratitude::Payday.newest) .to eq(Gratitude::Payday.sort_by_ts_end.first) end end - describe "#oldest_payday" do + describe "#oldest" do it "returns the oldest payday" do - expect(Gratitude::Payday.oldest_payday) + expect(Gratitude::Payday.oldest) .to eq(Gratitude::Payday.sort_by_ts_end.last) end end end # class methods @@ -65,10 +65,11 @@ 'ts_start' => "2013-09-12T12:36:52.967371+00:00" } ) }.to change{ Gratitude::Payday::PAYDAYS.size }.by(1) end - let(:payday) { Gratitude::Payday.oldest_payday } + let(:payday) { Gratitude::Payday.oldest } + # Actual Oldest Payday response # ach_fees_volume: 0, # ach_volume: 0, # charge_fees_volume: 0.34, # charge_volume: 3.3,