spec/socialcast/command_line/cli_spec.rb in socialcast-1.3.7 vs spec/socialcast/command_line/cli_spec.rb in socialcast-1.3.8
- old
+ new
@@ -160,11 +160,11 @@
search_api_response = {
'users' => [
{
'id' => 7,
'avatars' => {
- 'is_system_default' => system_default_photo
+ 'is_community_default' => system_default_photo
}
}
]
}
user_search_resource.should_receive(:get).and_return(search_api_response.to_json)
@@ -197,11 +197,11 @@
search_api_response = {
'users' => [
{
'id' => 7,
'avatars' => {
- 'is_system_default' => system_default_photo
+ 'is_community_default' => system_default_photo
}
}
]
}
user_search_resource.should_receive(:get).and_return(search_api_response.to_json)
@@ -230,11 +230,11 @@
search_api_response = {
'users' => [
{
'id' => 7,
'avatars' => {
- 'is_system_default' => system_default_photo
+ 'is_community_default' => system_default_photo
}
}
]
}
user_search_resource.should_receive(:get).and_return(search_api_response.to_json)
@@ -297,10 +297,10 @@
File.stub(:open).with(/users.xml.gz/, anything).and_yield(@result)
rest_client_resource = double(:rest_client_resource)
rest_client_resource.stub(:post).and_raise(RestClient::Unauthorized.new(double('Unauthorized HTTP Response', :code => '401', :body => 'Unauthorized HTTP Response')))
Socialcast::CommandLine.stub(:resource_for_path).and_return(rest_client_resource)
- Kernel.should_receive(:abort).with("Authenticated user either does not have administration privileges or the community is not configured to allow provisioning. Please contact Socialcast support to if you need help.\nResponse from server: Unauthorized HTTP Response").once
+ Kernel.should_receive(:abort).with("Authenticated user either does not have administration privileges or the community is not configured to allow provisioning. Please contact Socialcast support to if you need help.").once
Socialcast::CommandLine::CLI.start ['provision', '-f']
end
it "raises Kernel abort" do end # see expectations
end