spec/examples/post_spec.rb in tumblr_client-0.7.2 vs spec/examples/post_spec.rb in tumblr_client-0.7.3

- old
+ new

@@ -157,9 +157,18 @@ :type => type.to_s }) client.send type, blog_name, :source => [source, source] end + it 'should be able to be passed as an array on edit' do + client.should_receive(:post).once.with("v2/blog/#{blog_name}/post/edit", { + :id => post_id, + 'source[0]' => source, + 'source[1]' => source + }) + client.edit blog_name, :id => post_id, :source => [source, source] + end + end end context 'when passing colliding options' do