octokit 1.17.0 → 1.17.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,9 +4,9 @@ require 'helper'
4
4
  describe Octokit::Gist do
5
5
 
6
6
  context "when given a URL" do
7
- it "should set the id" do
7
+ it "sets the id" do
8
8
  gist = Octokit::Gist.from_url("https://gist.github.com/12345")
9
- gist.id.should == '12345'
9
+ expect(gist.id).to eq('12345')
10
10
  end
11
11
  end
12
12
 
@@ -15,16 +15,16 @@ describe Octokit::Gist do
15
15
  @gist = Octokit::Gist.new('12345')
16
16
  end
17
17
 
18
- it "should set the gist ID" do
19
- @gist.id.should == '12345'
18
+ it "sets the gist ID" do
19
+ expect(@gist.id).to eq('12345')
20
20
  end
21
21
 
22
- it "should set the url" do
23
- @gist.url.should == 'https://gist.github.com/12345'
22
+ it "sets the url" do
23
+ expect(@gist.url).to eq('https://gist.github.com/12345')
24
24
  end
25
25
 
26
- it "should render id as string" do
27
- @gist.to_s.should == @gist.id
26
+ it "renders id as string" do
27
+ expect(@gist.to_s).to eq(@gist.id)
28
28
  end
29
29
  end
30
30
 
@@ -33,16 +33,16 @@ describe Octokit::Gist do
33
33
  @gist = Octokit::Gist.new(12345)
34
34
  end
35
35
 
36
- it "should set the gist ID as a string" do
37
- @gist.id.should == '12345'
36
+ it "sets the gist ID as a string" do
37
+ expect(@gist.id).to eq('12345')
38
38
  end
39
39
 
40
- it "should set the url" do
41
- @gist.url.should == 'https://gist.github.com/12345'
40
+ it "sets the url" do
41
+ expect(@gist.url).to eq('https://gist.github.com/12345')
42
42
  end
43
43
 
44
- it "should render id as string" do
45
- @gist.to_s.should == @gist.id
44
+ it "renders id as string" do
45
+ expect(@gist.to_s).to eq(@gist.id)
46
46
  end
47
47
  end
48
48
 
@@ -7,23 +7,23 @@ describe Octokit do
7
7
  end
8
8
 
9
9
  describe ".respond_to?" do
10
- it "should be true if method exists" do
11
- Octokit.respond_to?(:new, true).should be_true
10
+ it "is true if method exists" do
11
+ expect(Octokit.respond_to?(:new, true)).to be_true
12
12
  end
13
13
  end
14
14
 
15
15
  describe ".new" do
16
- it "should be a Octokit::Client" do
17
- Octokit.new.should be_a Octokit::Client
16
+ it "is a Octokit::Client" do
17
+ expect(Octokit.new).to be_a Octokit::Client
18
18
  end
19
19
  end
20
20
 
21
21
  describe ".delegate" do
22
- it "should delegate missing methods to Octokit::Client" do
22
+ it "delegates missing methods to Octokit::Client" do
23
23
  stub_get("/repos/pengwynn/octokit/issues").
24
24
  to_return(:status => 200, :body => fixture('v3/issues.json'))
25
25
  issues = Octokit.issues('pengwynn/octokit')
26
- issues.last.user.login.should == 'fellix'
26
+ expect(issues.last.user.login).to eq('fellix')
27
27
  end
28
28
 
29
29
  end
@@ -7,49 +7,49 @@ describe Octokit::Repository do
7
7
  @repository = Octokit::Repository.new("sferik/octokit")
8
8
  end
9
9
 
10
- it "should set the repository name and username" do
11
- @repository.name.should == "octokit"
12
- @repository.username.should == "sferik"
10
+ it "sets the repository name and username" do
11
+ expect(@repository.name).to eq("octokit")
12
+ expect(@repository.username).to eq("sferik")
13
13
  end
14
14
 
15
- it "should respond to repo and user" do
16
- @repository.repo.should == "octokit"
17
- @repository.user.should == "sferik"
15
+ it "responds to repo and user" do
16
+ expect(@repository.repo).to eq("octokit")
17
+ expect(@repository.user).to eq("sferik")
18
18
  end
19
19
 
20
- it "should render slug as string" do
21
- @repository.slug.should == "sferik/octokit"
22
- @repository.to_s.should == @repository.slug
20
+ it "renders slug as string" do
21
+ expect(@repository.slug).to eq("sferik/octokit")
22
+ expect(@repository.to_s).to eq(@repository.slug)
23
23
  end
24
24
 
25
- it "should render url as string" do
26
- @repository.url.should == 'https://github.com/sferik/octokit'
25
+ it "renders url as string" do
26
+ expect(@repository.url).to eq('https://github.com/sferik/octokit')
27
27
  end
28
28
 
29
29
  end
30
30
 
31
31
  context "when passed a hash" do
32
- it "should set the repository name and username" do
32
+ it "sets the repository name and username" do
33
33
  repository = Octokit::Repository.new({:username => 'sferik', :name => 'octokit'})
34
- repository.name.should == "octokit"
35
- repository.username.should == "sferik"
34
+ expect(repository.name).to eq("octokit")
35
+ expect(repository.username).to eq("sferik")
36
36
  end
37
37
  end
38
38
 
39
39
  context "when passed a Repo" do
40
- it "should set the repository name and username" do
40
+ it "sets the repository name and username" do
41
41
  repository = Octokit::Repository.new(Octokit::Repository.new('sferik/octokit'))
42
- repository.name.should == "octokit"
43
- repository.username.should == "sferik"
44
- repository.url.should == 'https://github.com/sferik/octokit'
42
+ expect(repository.name).to eq("octokit")
43
+ expect(repository.username).to eq("sferik")
44
+ expect(repository.url).to eq('https://github.com/sferik/octokit')
45
45
  end
46
46
  end
47
47
 
48
48
  context "when given a URL" do
49
- it "should set the repository name and username" do
49
+ it "sets the repository name and username" do
50
50
  repository = Octokit::Repository.from_url("https://github.com/sferik/octokit")
51
- repository.name.should == "octokit"
52
- repository.username.should == "sferik"
51
+ expect(repository.name).to eq("octokit")
52
+ expect(repository.username).to eq("sferik")
53
53
  end
54
54
  end
55
55
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octokit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.0
4
+ version: 1.17.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-10-08 00:00:00.000000000 Z
14
+ date: 2012-10-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: addressable
@@ -78,13 +78,13 @@ dependencies:
78
78
  - !ruby/object:Gem::Version
79
79
  version: '1.2'
80
80
  - !ruby/object:Gem::Dependency
81
- name: json
81
+ name: multi_json
82
82
  requirement: !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
86
86
  - !ruby/object:Gem::Version
87
- version: '1.7'
87
+ version: '1.3'
88
88
  type: :runtime
89
89
  prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
@@ -92,23 +92,23 @@ dependencies:
92
92
  requirements:
93
93
  - - ~>
94
94
  - !ruby/object:Gem::Version
95
- version: '1.7'
95
+ version: '1.3'
96
96
  - !ruby/object:Gem::Dependency
97
- name: multi_json
97
+ name: json
98
98
  requirement: !ruby/object:Gem::Requirement
99
99
  none: false
100
100
  requirements:
101
101
  - - ~>
102
102
  - !ruby/object:Gem::Version
103
- version: '1.3'
104
- type: :runtime
103
+ version: '1.7'
104
+ type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
109
  - - ~>
110
110
  - !ruby/object:Gem::Version
111
- version: '1.3'
111
+ version: '1.7'
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: maruku
114
114
  requirement: !ruby/object:Gem::Requirement