pv 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/spec/fixtures/pv.yml CHANGED
@@ -1,3 +1,4 @@
1
- username: 'john@doe.com'
1
+ username: 'johndoe'
2
2
  password: 'password'
3
- project_id: 12345
3
+ project_id: 123456
4
+ name: 'John Doe'
@@ -4,9 +4,7 @@ require 'pv/bug_tracker'
4
4
  module Pv
5
5
  describe BugTracker do
6
6
  subject do
7
- VCR.use_cassette :pivotal_client_connection do
8
- Pv::BugTracker.new("john@doe.com", "password")
9
- end
7
+ VCR.use_cassette(:pivotal_client_connection) { Pv::BugTracker.new }
10
8
  end
11
9
 
12
10
  it "connects to pivotal tracker" do
@@ -15,8 +13,12 @@ module Pv
15
13
 
16
14
  it "gathers the list of stories this user has to accomplish" do
17
15
  VCR.use_cassette :pivotal_project_stories_search do
18
- subject.stories(461255, "Tom Scott").should_not be_empty
16
+ subject.stories("Tom Scott").should_not be_empty
19
17
  end
20
18
  end
19
+
20
+ it "creates a new story on the pivotal api"
21
+
22
+ it "updates an existing story on the pivotal api"
21
23
  end
22
24
  end
@@ -15,17 +15,25 @@ module Pv
15
15
  it "reads from ~/.pv YAML" do
16
16
  subject.should be_present
17
17
  subject.attributes.should_not be_empty
18
- subject.attributes.count.should == 3
18
+ subject.attributes.count.should == 4
19
19
  end
20
20
 
21
21
  it "parses a username" do
22
- subject.username.should == "john@doe.com"
22
+ subject.username.should == "johndoe"
23
23
  end
24
24
 
25
25
  it "parses a password" do
26
26
  subject.password.should == "password"
27
27
  end
28
28
 
29
+ it "parses a full name" do
30
+ subject.name.should == "John Doe"
31
+ end
32
+
33
+ it "parses a project id into a number" do
34
+ subject.project_id.should == 123456
35
+ end
36
+
29
37
  after do
30
38
  if File.exists? File.expand_path("~/.pv.safe")
31
39
  `cp ~/.pv.safe ~/.pv`
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-20 00:00:00.000000000 Z
12
+ date: 2012-11-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pivotal-tracker