spec/ballast/ajax_response_spec.rb in ballast-2.1.2 vs spec/ballast/ajax_response_spec.rb in ballast-2.1.3

- old
+ new

@@ -36,10 +36,10 @@ describe "#reply" do before(:example) do @transport = OpenStruct.new(request: OpenStruct.new(format: :json), params: {}, performed?: false) end - subject { Ballast::AjaxResponse.new(status: 200, data: "DATA", error: "ERROR", transport: @transport) } + subject { Ballast::AjaxResponse.new(status: :ok, data: "DATA", error: "ERROR", transport: @transport) } it "should setup the right content type for text" do expect(@transport).to receive(:render).with(text: "{\"status\":200,\"data\":\"DATA\",\"error\":\"ERROR\"}", status: 200, callback: nil, content_type: "text/plain") subject.reply(format: :text) end \ No newline at end of file