|
2 | 2 |
|
3 | 3 | require 'spec_helper' |
4 | 4 |
|
5 | | -describe Github::Client::Activity::Feeds, '#list' do |
| 5 | +RSpec.describe Github::Client::Activity::Feeds, '#list' do |
6 | 6 | let(:user) { 'peter-murach' } |
7 | 7 | let(:repo) { 'github' } |
8 | 8 |
|
|
23 | 23 |
|
24 | 24 | it { should respond_to :all } |
25 | 25 |
|
26 | | - it 'should get the resource' do |
| 26 | + it 'gets the resource' do |
27 | 27 | subject.list |
28 | 28 | expect(a_get(request_path).with(:query => {:access_token => OAUTH_TOKEN})). |
29 | 29 | to have_been_made |
30 | 30 | end |
31 | 31 |
|
32 | | - it "should get timeline url" do |
| 32 | + it "gets timeline url" do |
33 | 33 | feeds = subject.list |
34 | 34 | expect(feeds.timeline_url).to eq('https://github.com/timeline') |
35 | 35 | end |
36 | 36 |
|
37 | | - it "should get user url" do |
| 37 | + it "gest user url" do |
38 | 38 | feeds = subject.list |
39 | 39 | expect(feeds.user_url).to eq('https://github.com/{user}') |
40 | 40 | end |
41 | 41 |
|
42 | | - it "should get current user public url" do |
| 42 | + it "gets current user public url" do |
43 | 43 | feeds = subject.list |
44 | 44 | expect(feeds.current_user_public_url).to eq('https://github.com/defunkt') |
45 | 45 | end |
46 | 46 |
|
47 | | - it "should get current user url" do |
| 47 | + it "gets current user url" do |
48 | 48 | feeds = subject.list |
49 | 49 | expect(feeds.current_user_url).to eq('https://github.com/defunkt.private?token=abc123') |
50 | 50 | end |
51 | 51 |
|
52 | | - it "should get current user actor url" do |
| 52 | + it "gets current user actor url" do |
53 | 53 | feeds = subject.list |
54 | 54 | expect(feeds.current_user_actor_url).to eq('https://github.com/defunkt.private.actor?token=abc123') |
55 | 55 | end |
56 | 56 |
|
57 | | - it "should get current user organization url" do |
| 57 | + it "gets current user organization url" do |
58 | 58 | feeds = subject.list |
59 | 59 | expect(feeds.current_user_organization_url).to eq('') |
60 | 60 | end |
61 | 61 |
|
62 | | - it "should get current user public url" do |
| 62 | + it "gets current user public url" do |
63 | 63 | feeds = subject.list |
64 | 64 | expect(feeds.current_user_organization_urls.first).to eq('https://github.com/organizations/github/defunkt.private.atom?token=abc123') |
65 | 65 | end |
|
68 | 68 | let(:requestable) { subject.list } |
69 | 69 | end |
70 | 70 | end |
71 | | - |
72 | 71 | end |
0 commit comments