Skip to content

Commit fde11ee

Browse files
committed
Change to new syntax.
1 parent 21e16e6 commit fde11ee

9 files changed

Lines changed: 39 additions & 39 deletions

File tree

spec/github/client/activity/events/issue_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
it "should get the resources" do
2727
subject.issue user, repo
28-
a_get(request_path).should have_been_made
28+
expect(a_get(request_path)).to have_been_made
2929
end
3030

3131
it_should_behave_like 'an array of resources' do
@@ -34,13 +34,13 @@
3434

3535
it "should get event information" do
3636
events = subject.issue user, repo
37-
events.first.type.should == 'Event'
37+
expect(events.first.type).to eq('Event')
3838
end
3939

4040
it "should yield to a block" do
4141
yielded = []
4242
result = subject.issue(user, repo) { |obj| yielded << obj }
43-
yielded.should == result
43+
expect(yielded).to eq(result)
4444
end
4545
end
4646

spec/github/client/activity/events/network_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
it "should get the resources" do
2525
subject.network user, repo
26-
a_get(request_path).should have_been_made
26+
expect(a_get(request_path)).to have_been_made
2727
end
2828

2929
it_should_behave_like 'an array of resources' do
@@ -32,13 +32,13 @@
3232

3333
it "should get event information" do
3434
events = subject.network user, repo
35-
events.first.type.should == 'Event'
35+
expect(events.first.type).to eq('Event')
3636
end
3737

3838
it "should yield to a block" do
3939
yielded = []
4040
result = subject.network(user, repo) { |obj| yielded << obj }
41-
yielded.should == result
41+
expect(yielded).to eq(result)
4242
end
4343
end
4444

spec/github/client/activity/events/org_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
it "should get the resources" do
2626
subject.organization org
27-
a_get(request_path).should have_been_made
27+
expect(a_get(request_path)).to have_been_made
2828
end
2929

3030
it_should_behave_like 'an array of resources' do
@@ -33,13 +33,13 @@
3333

3434
it "should get event information" do
3535
events = subject.organization org
36-
events.first.type.should == 'Event'
36+
expect(events.first.type).to eq('Event')
3737
end
3838

3939
it "should yield to a block" do
4040
yielded = []
4141
result = subject.organization(org) { |obj| yielded << obj }
42-
yielded.should == result
42+
expect(yielded).to eq(result)
4343
end
4444
end
4545

spec/github/client/activity/events/performed_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
it "should get the resources" do
2525
subject.performed user
26-
a_get(request_path).should have_been_made
26+
expect(a_get(request_path)).to have_been_made
2727
end
2828

2929
it_should_behave_like 'an array of resources' do
@@ -32,13 +32,13 @@
3232

3333
it "should get event information" do
3434
events = subject.performed user
35-
events.first.type.should == 'Event'
35+
expect(events.first.type).to eq('Event')
3636
end
3737

3838
it "should yield to a block" do
3939
yielded = []
4040
result = subject.performed(user) { |obj| yielded << obj }
41-
yielded.should == result
41+
expect(yielded).to eq(result)
4242
end
4343
end
4444

@@ -47,7 +47,7 @@
4747

4848
it "should get the resources" do
4949
subject.performed user, :public => true
50-
a_get(request_path).should have_been_made
50+
expect(a_get(request_path)).to have_been_made
5151
end
5252

5353
it_should_behave_like 'an array of resources' do
@@ -56,13 +56,13 @@
5656

5757
it "should get event information" do
5858
events = subject.performed user, :public => true
59-
events.first.type.should == 'Event'
59+
expect(events.first.type).to eq('Event')
6060
end
6161

6262
it "should yield to a block" do
6363
yielded = []
6464
result = subject.performed(user, :public => true) { |obj| yielded << obj }
65-
yielded.should == result
65+
expect(yielded).to eq(result)
6666
end
6767
end
6868

spec/github/client/activity/events/public_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
it "should get the resources" do
2020
subject.public
21-
a_get(request_path).should have_been_made
21+
expect(a_get(request_path)).to have_been_made
2222
end
2323

2424
it_should_behave_like 'an array of resources' do
@@ -27,13 +27,13 @@
2727

2828
it "should get event information" do
2929
events = subject.public
30-
events.first.type.should == 'Event'
30+
expect(events.first.type).to eq('Event')
3131
end
3232

3333
it "should yield to a block" do
3434
yielded = []
3535
result = subject.public { |obj| yielded << obj }
36-
yielded.should == result
36+
expect(yielded).to eq(result)
3737
end
3838
end
3939

spec/github/client/activity/events/received_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
it "should get the resources" do
2525
subject.received user
26-
a_get(request_path).should have_been_made
26+
expect(a_get(request_path)).to have_been_made
2727
end
2828

2929
it_should_behave_like 'an array of resources' do
@@ -32,13 +32,13 @@
3232

3333
it "should get event information" do
3434
events = subject.received user
35-
events.first.type.should == 'Event'
35+
expect(events.first.type).to eq('Event')
3636
end
3737

3838
it "should yield to a block" do
3939
yielded = []
4040
result = subject.received(user) { |obj| yielded << obj }
41-
yielded.should == result
41+
expect(yielded).to eq(result)
4242
end
4343
end
4444

@@ -47,7 +47,7 @@
4747

4848
it "should get the resources" do
4949
subject.received user, :public => true
50-
a_get(request_path).should have_been_made
50+
expect(a_get(request_path)).to have_been_made
5151
end
5252

5353
it_should_behave_like 'an array of resources' do
@@ -56,13 +56,13 @@
5656

5757
it "should get event information" do
5858
events = subject.received user, :public => true
59-
events.first.type.should == 'Event'
59+
expect(events.first.type).to eq('Event')
6060
end
6161

6262
it "should yield to a block" do
6363
yielded = []
6464
result = subject.received(user, :public => true) { |obj| yielded << obj }
65-
yielded.should == result
65+
expect(yielded).to eq(result)
6666
end
6767
end
6868

spec/github/client/activity/events/repository_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
it "should get the resources" do
2929
subject.repository user, repo
30-
a_get(request_path).should have_been_made
30+
expect(a_get(request_path)).to have_been_made
3131
end
3232

3333
it_should_behave_like 'an array of resources' do
@@ -36,13 +36,13 @@
3636

3737
it "should get event information" do
3838
events = subject.repository user, repo
39-
events.first.type.should == 'Event'
39+
expect(events.first.type).to eq('Event')
4040
end
4141

4242
it "should yield to a block" do
4343
yielded = []
4444
result = subject.repository(user, repo) { |obj| yielded << obj }
45-
yielded.should == result
45+
expect(yielded).to eq(result)
4646
end
4747
end
4848

spec/github/client/activity/events/user_org_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
it "should get the resources" do
2929
subject.user_org user, org
30-
a_get(request_path).should have_been_made
30+
expect(a_get(request_path)).to have_been_made
3131
end
3232

3333
it_should_behave_like 'an array of resources' do
@@ -36,13 +36,13 @@
3636

3737
it "should get event information" do
3838
events = subject.user_org user, org
39-
events.first.type.should == 'Event'
39+
expect(events.first.type).to eq('Event')
4040
end
4141

4242
it "should yield to a block" do
4343
yielded = []
4444
result = subject.user_org(user, org) { |obj| yielded << obj }
45-
yielded.should == result
45+
expect(yielded).to eq(result)
4646
end
4747
end
4848

spec/github/client/activity/feeds/list_spec.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,43 +25,43 @@
2525

2626
it 'should get the resource' do
2727
subject.list
28-
a_get(request_path).with(:query => {:access_token => OAUTH_TOKEN}).
29-
should have_been_made
28+
expect(a_get(request_path).with(:query => {:access_token => OAUTH_TOKEN})).
29+
to have_been_made
3030
end
3131

3232
it "should get timeline url" do
3333
feeds = subject.list
34-
feeds.timeline_url.should == 'https://github.com/timeline'
34+
expect(feeds.timeline_url).to eq('https://github.com/timeline')
3535
end
3636

3737
it "should get user url" do
3838
feeds = subject.list
39-
feeds.user_url.should == 'https://github.com/{user}'
39+
expect(feeds.user_url).to eq('https://github.com/{user}')
4040
end
4141

4242
it "should get current user public url" do
4343
feeds = subject.list
44-
feeds.current_user_public_url.should == 'https://github.com/defunkt'
44+
expect(feeds.current_user_public_url).to eq('https://github.com/defunkt')
4545
end
4646

4747
it "should get current user url" do
4848
feeds = subject.list
49-
feeds.current_user_url.should == 'https://github.com/defunkt.private?token=abc123'
49+
expect(feeds.current_user_url).to eq('https://github.com/defunkt.private?token=abc123')
5050
end
5151

5252
it "should get current user actor url" do
5353
feeds = subject.list
54-
feeds.current_user_actor_url.should == 'https://github.com/defunkt.private.actor?token=abc123'
54+
expect(feeds.current_user_actor_url).to eq('https://github.com/defunkt.private.actor?token=abc123')
5555
end
5656

5757
it "should get current user organization url" do
5858
feeds = subject.list
59-
feeds.current_user_organization_url.should == ''
59+
expect(feeds.current_user_organization_url).to eq('')
6060
end
6161

6262
it "should get current user public url" do
6363
feeds = subject.list
64-
feeds.current_user_organization_urls.first.should == 'https://github.com/organizations/github/defunkt.private.atom?token=abc123'
64+
expect(feeds.current_user_organization_urls.first).to eq('https://github.com/organizations/github/defunkt.private.atom?token=abc123')
6565
end
6666

6767
it_should_behave_like 'request failure' do

0 commit comments

Comments
 (0)