travis-api/spec/unit/serialize/v2/http/broadcasts_spec.rb
2016-06-19 14:35:54 +02:00

14 lines
330 B
Ruby

describe Travis::Api::Serialize::V2::Http::Broadcasts do
include Support::Formats
let(:broadcast) { stub(:id => 1, :message => 'yo hey!') }
let(:data) { described_class.new([broadcast]).data }
it 'broadcasts' do
data['broadcasts'].first.should == {
'id' => 1,
'message' => 'yo hey!'
}
end
end