test/segment_test.rb in createsend-4.1.2 vs test/segment_test.rb in createsend-5.0.0
- old
+ new
@@ -26,10 +26,10 @@
@segment.add_rule_group rule_group
end
should "get the active subscribers for a particular segment in the list" do
min_date = "2010-01-01"
- stub_get(@auth, "segments/#{@segment.segment_id}/active.json?pagesize=1000&orderfield=email&page=1&orderdirection=asc&date=#{CGI.escape(min_date)}",
+ stub_get(@auth, "segments/#{@segment.segment_id}/active.json?pagesize=1000&orderfield=email&page=1&orderdirection=asc&date=#{CGI.escape(min_date)}&includetrackingpreference=false",
"segment_subscribers.json")
res = @segment.subscribers min_date
res.ResultsOrderedBy.should == "email"
res.OrderDirection.should == "asc"
res.PageNumber.should == 1