spec/search_spec.rb in jiralicious-0.0.6 vs spec/search_spec.rb in jiralicious-0.1.0

- old
+ new

@@ -1,9 +1,9 @@ # encoding: utf-8 -require File.expand_path(File.dirname(__FILE__) + '/spec_helper') +require "spec_helper" -describe Jiralicious, "search", do +describe Jiralicious, "search" do before :each do Jiralicious.configure do |config| config.username = "jstewart" config.password = "topsecret" @@ -29,9 +29,10 @@ context "When there's a problem with the query" do before :each do FakeWeb.register_uri(:post, "#{Jiralicious.rest_path}/search", + :body => "{errorMessages: ['error']}", :status => "400") end it "raises an exception" do lambda {