spec/gitlab/client/boards_spec.rb in gitlab-4.2.0 vs spec/gitlab/client/boards_spec.rb in gitlab-4.3.0

- old
+ new

@@ -5,30 +5,30 @@ before do stub_get("/projects/3/boards", "boards") @boards = Gitlab.boards(3) end - it "should get the correct resource" do + it "gets the correct resource" do expect(a_get("/projects/3/boards")).to have_been_made end - it "should return a paginated response of project's boards" do + it "returns a paginated response of project's boards" do expect(@boards).to be_a Gitlab::PaginatedResponse end end describe ".board_lists" do before do stub_get("/projects/3/boards/1/lists", "board_lists") @board_lists = Gitlab.board_lists(3, 1) end - it "should get the correct resource" do + it "gets the correct resource" do expect(a_get("/projects/3/boards/1/lists")).to have_been_made end - it "should return a paginated response of board's lists" do + it "returns a paginated response of board's lists" do expect(@board_lists).to be_a Gitlab::PaginatedResponse expect(@board_lists.first.id).to eq(1) end end @@ -36,59 +36,59 @@ before do stub_get("/projects/3/boards/1/lists/1", "board_list") @board_list = Gitlab.board_list(3, 1, 1) end - it "should get the correct resource" do + it "gets the correct resource" do expect(a_get("/projects/3/boards/1/lists/1")).to have_been_made end - it "should return information about the list" do + it "returns information about the list" do expect(@board_list.id).to eq(1) end end describe ".create_board_list" do before do stub_post("/projects/3/boards/1/lists", "board_list") @board_list = Gitlab.create_board_list(3, 1, 4) end - it "should get the correct resource" do + it "gets the correct resource" do expect(a_post("/projects/3/boards/1/lists")).to have_been_made end - it "should return information about a created board" do + it "returns information about a created board" do expect(@board_list.position).to eq(1) end end describe ".edit_board_list" do before do stub_put("/projects/3/boards/1/lists/1", "board_list") @board_list = Gitlab.edit_board_list(3, 1, 1, 3) end - it "should get the correct resource" do + it "gets the correct resource" do expect(a_put("/projects/3/boards/1/lists/1")).to have_been_made end - it "should return information about an edited board" do + it "returns information about an edited board" do expect(@board_list.id).to eq(1) end end describe ".delete_board_list" do before do stub_delete("/projects/3/boards/1/lists/1", "board_list") @board_list = Gitlab.delete_board_list(3, 1, 1) end - it "should get the correct resource" do + it "gets the correct resource" do expect(a_delete("/projects/3/boards/1/lists/1")).to have_been_made end - it "should return information about the deleted board list" do + it "returns information about the deleted board list" do expect(@board_list.id).to eq(1) end end end