|
25 | 25 |
|
26 | 26 | it 'should get the resource' do |
27 | 27 | 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 |
30 | 30 | end |
31 | 31 |
|
32 | 32 | it "should get timeline url" do |
33 | 33 | feeds = subject.list |
34 | | - feeds.timeline_url.should == 'https://github.com/timeline' |
| 34 | + expect(feeds.timeline_url).to eq('https://github.com/timeline') |
35 | 35 | end |
36 | 36 |
|
37 | 37 | it "should get user url" do |
38 | 38 | feeds = subject.list |
39 | | - feeds.user_url.should == 'https://github.com/{user}' |
| 39 | + expect(feeds.user_url).to eq('https://github.com/{user}') |
40 | 40 | end |
41 | 41 |
|
42 | 42 | it "should get current user public url" do |
43 | 43 | 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') |
45 | 45 | end |
46 | 46 |
|
47 | 47 | it "should get current user url" do |
48 | 48 | 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') |
50 | 50 | end |
51 | 51 |
|
52 | 52 | it "should get current user actor url" do |
53 | 53 | 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') |
55 | 55 | end |
56 | 56 |
|
57 | 57 | it "should get current user organization url" do |
58 | 58 | feeds = subject.list |
59 | | - feeds.current_user_organization_url.should == '' |
| 59 | + expect(feeds.current_user_organization_url).to eq('') |
60 | 60 | end |
61 | 61 |
|
62 | 62 | it "should get current user public url" do |
63 | 63 | 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') |
65 | 65 | end |
66 | 66 |
|
67 | 67 | it_should_behave_like 'request failure' do |
|
0 commit comments