spec/model/message_spec.rb in yammer-client-0.1.4 vs spec/model/message_spec.rb in yammer-client-0.1.5
- old
+ new
@@ -17,11 +17,11 @@
subject { Yammer::Message }
describe '#create' do
it 'creates a new group' do
stub_request(:post, "https://www.yammer.com/api/v1/messages").with(
- :body => { :name => 'rails team', :privacy => 'public' },
+ :body => { :body => 'python not ruby', :privacy => 'public' },
:headers => {
'Accept' => 'application/json',
'Authorization' => "Bearer #{Yammer.access_token}",
'Content-Type' => 'application/x-www-form-urlencoded',
'User-Agent' => "Yammer Ruby Gem #{Yammer::Version}"
@@ -29,10 +29,10 @@
).to_return(
:status => 201,
:body => '',
:headers => {'Location' => 'https://www.yammer.com/api/v1/messages/2'}
)
- subject.create(:name => 'rails team', :privacy => 'public')
+ subject.create('python not ruby', :privacy => 'public')
end
end
describe '#get' do
it 'returns message response' do
\ No newline at end of file