test/unit/data_test.rb in rsift-0.3.1 vs test/unit/data_test.rb in rsift-0.3.2

- old
+ new

@@ -1,9 +1,9 @@ require "webmock/test_unit" require "test/unit" require "shoulda" -require_relative "../../lib/rsift" +require "./lib/rsift" class DataTest < Test::Unit::TestCase include WebMock::API def setup @@ -14,12 +14,17 @@ end context "with data" do setup do body = '{"success":true}' + # stub_request(:get, /api.datasift.net\/stream.json/). + # with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}). + # to_return(:status => 200, :body => body, :headers => {}) + # stub_request(:get, /api.datasift.net\/stream.json/). - with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}). - to_return(:status => 200, :body => body, :headers => {}) + with(:headers => {'Accept'=>'*/*'}). + to_return(:status => 200, :body => body, :headers => {}) + end should "get a comment" do opts = {:stream_identifier => "1", :count => 10} \ No newline at end of file