spec/client_spec.rb in chatterbot-2.0.0.pre vs spec/client_spec.rb in chatterbot-2.0.2
- old
+ new
@@ -137,15 +137,14 @@
expect(@bot).to receive(:request_token).and_return(token)
expect(token).to receive(:get_access_token).with(:oauth_verifier => "pin").
and_return(double(:token => "access_token", :secret => "access_secret"))
expect(@bot).to receive(:get_screen_name)
- expect(@bot).to receive(:update_config)
@bot.login
- expect(@bot.config[:token]).to eq("access_token")
- expect(@bot.config[:secret]).to eq("access_secret")
+ expect(@bot.config[:access_token]).to eq("access_token")
+ expect(@bot.config[:access_token_secret]).to eq("access_secret")
end
it "handles errors" do
expect(@bot).to receive(:display_oauth_error)
@bot.login