Explorar el Código

try using this to set the option

Brandon Murphy hace 4 años
padre
commit
4e456c8d3e
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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