diff --git a/spec/channel_spec.rb b/spec/channel_spec.rb index 62b402e..b5df293 100644 --- a/spec/channel_spec.rb +++ b/spec/channel_spec.rb @@ -87,7 +87,7 @@ def stub_post_to_raise(e) describe '#users' do it "should call the Client#channel_users" do - @client.should_receive(:get).with("/channels/presence-mychannel/users").and_return({users:{'id'=>'4'}}) + @client.should_receive(:get).with("/channels/presence-mychannel/users").and_return({:users => {'id' => '4'}}) @channel = @client['presence-mychannel'] @channel.users end