Skip to content

Commit 1d06c02

Browse files
committed
Change api set spec to use new syntax.
1 parent c479486 commit 1d06c02

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'spec_helper'
44

5-
describe Github::API, '#set' do
5+
RSpec.describe Github::API, '#set' do
66

77
after { reset_authentication_for subject }
88

@@ -23,10 +23,15 @@
2323
end
2424

2525
context 'defines accessors' do
26-
before { subject.set :branch, 'arguments' }
26+
before { subject.set :branch, :master }
2727

28-
it { should respond_to :branch }
28+
it 'reads property default value' do
29+
expect(subject.branch).to eql(:master)
30+
end
2931

30-
it { should respond_to 'branch=' }
32+
it 'sets property' do
33+
subject.branch = 'hotfix'
34+
expect(subject.branch).to eq('hotfix')
35+
end
3136
end
3237
end

0 commit comments

Comments
 (0)