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

- old
+ new

@@ -13,13 +13,13 @@ end context "when successful" do before :each do FakeWeb.register_uri(:post, - "#{Jiralicious.rest_path}/search", - :status => "200", - :body => search_json) + "#{Jiralicious.rest_path}/search", + :status => "200", + :body => search_json) end it "instantiates a search result" do results = Jiralicious.search("key = HSP-1") @@ -28,12 +28,12 @@ end 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") + "#{Jiralicious.rest_path}/search", + :body => '{"errorMessages": ["error"]}', + :status => "400") end it "raises an exception" do lambda { results = Jiralicious.search("key = HSP-1")