We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e591097 commit c9c7b3dCopy full SHA for c9c7b3d
spec/models/channel_section_spec.rb
@@ -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
13
+end
0 commit comments