Skip to content

Commit c9c7b3d

Browse files
committed
Add test for channel_section model
1 parent e591097 commit c9c7b3d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
require 'spec_helper'
2+
require 'yt/models/channel_section'
3+
4+
describe Yt::ChannelSection do
5+
subject(:channel_section) { Yt::ChannelSection.new attrs }
6+
7+
describe '#position' do
8+
context 'given fetching a channel_section returns a snippet' do
9+
let(:attrs) { {snippet: {"title"=>"New Section", "position"=>0}} }
10+
it { expect(channel_section.position).to eq 0 }
11+
end
12+
end
13+
end

0 commit comments

Comments
 (0)