spec/calais/client_spec.rb in calais-0.0.7 vs spec/calais/client_spec.rb in calais-0.0.8
- old
+ new
@@ -30,11 +30,11 @@
end
describe Calais::Client, :params_xml do
it 'returns an xml encoded string' do
client = Calais::Client.new(:content => SAMPLE_DOCUMENT, :license_id => LICENSE_ID)
- client.params_xml.should == %[<c:params xmlns:c="http://s.opencalais.com/1/pred/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n <c:processingDirectives/>\n <c:userDirectives/>\n</c:params>]
+ client.params_xml.should == %[<c:params xmlns:c=\"http://s.opencalais.com/1/pred/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n <c:processingDirectives/>\n <c:userDirectives/>\n</c:params>]
client.content_type = :xml
client.output_format = :json
client.reltag_base_url = 'http://opencalais.com'
client.calculate_relevance = true
@@ -74,6 +74,6 @@
@client.should_receive(:do_request).with(anything).and_return(SAMPLE_RESPONSE)
@client.enlighten
@client.instance_variable_get(:@client).url.should == Calais::BETA_REST_ENDPOINT
end
-end
\ No newline at end of file
+end