Guest User

Untitled

a guest
Nov 29th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. require 'spec_helper'
  2.  
  3. describe "Delete project" do
  4. let(:client) do
  5. TaskMapper::Client.new :inmemory, :user => 'omar', :password => '1234'
  6. end
  7.  
  8. context "Given the backend has 1 projects" do
  9. it "Delete a project from the project repository" do
  10. p = client.project! :name => 'Awesome Project', :description => 'Awesome'
  11. client.projects.should have(1).items
  12. client.projects.delete(p).should be_true
  13. client.projects.should have(0).items
  14. end
  15. end
  16. end
Add Comment
Please, Sign In to add comment