Ver Fonte

try using this to set the option

Brandon Murphy há 4 anos atrás
pai
commit
4e456c8d3e
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      spec/models/agents/twitter_stream_agent_spec.rb

+ 1 - 2
spec/models/agents/twitter_stream_agent_spec.rb

@@ -264,8 +264,7 @@ describe Agents::TwitterStreamAgent do
       end
 
       it "includes retweets if configured" do
-        @agent.memory[:include_retweets] = "true"
-        @agent.save!
+        agent.options[:include_retweets] = 'true'
         @worker.send(:handle_status, {'text' => 'retweet', 'retweeted_status' => {one: true}, 'id_str' => '1234' })
         expect(@worker.instance_variable_get(:'@recent_tweets')).to include('1234')
       end