#1 new
Joseph Wilk

Fails when status code is successful but not !=200

Reported by Joseph Wilk | August 19th, 2008 @ 11:28 AM | in 0.2.0

When status code is successful but not 200 gem throws an exception.


  describe "search should still work when get returns a successful but not code 200" do
    it "should description" do
      Net::HTTP.stub!(:get_response).and_return{ mock_http_response :code => "206" }

      lambda { @api.search_web "monkey"  }.should_not raise_error(Boss::BossError)
    end
  end

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A handy gem to make using the Yahoo Boss API nice and easy in ruby.

People watching this ticket

Tags

Pages