spec/calais/client_spec.rb in calais-0.0.11 vs spec/calais/client_spec.rb in calais-0.0.12
- old
+ new
@@ -64,16 +64,16 @@
end
it 'provides access to the enlighten command on the generic rest endpoint' do
@client.should_receive(:do_request).with(anything).and_return(SAMPLE_RESPONSE)
@client.enlighten
- @client.instance_variable_get(:@client).url.should == Calais::REST_ENDPOINT
+ @client.url.should == URI.parse(Calais::REST_ENDPOINT)
end
it 'provides access to the enlighten command on the beta rest endpoint' do
@client.use_beta = true
@client.should_receive(:do_request).with(anything).and_return(SAMPLE_RESPONSE)
@client.enlighten
- @client.instance_variable_get(:@client).url.should == Calais::BETA_REST_ENDPOINT
+ @client.url.should == URI.parse(Calais::BETA_REST_ENDPOINT)
end
end