spec/unit/burndown_chart_spec.rb in trollolo-0.0.14 vs spec/unit/burndown_chart_spec.rb in trollolo-0.1.0

- old
+ new

@@ -365,15 +365,15 @@ path = given_directory_from_data("burndown_dir") expect(@chart.last_sprint(path)).to eq(2) end end - describe "load_last_sprint" do + describe "load_sprint" do let(:path) { given_directory_from_data("burndown_dir") } it "loads the burndown from the 2nd sprint into data" do - @chart.load_last_sprint(path) + @chart.load_sprint(path) expect(@chart.data).to eq( { "meta" => { "board_id" => "53186e8391ef8671265eba9d", "sprint" => 2, "total_days" => 9, @@ -400,10 +400,10 @@ ] }) end it "returns the path of the last sprint" do - expect(@chart.load_last_sprint(path)).to eq(File.join(path, "burndown-data-02.yaml")) + expect(@chart.load_sprint(path)).to eq(File.join(path, "burndown-data-02.yaml")) end end describe "update" do let(:path) { given_directory_from_data("burndown_dir") }