Sha256: 170554be6d160d78396d606f71ce1f23e1111c141a8b3c7b7a0ffc954a6f4c76
Contents?: true
Size: 732 Bytes
Versions: 86
Compression:
Stored size: 732 Bytes
Contents
require "spec_helper" describe "Browsing a Briefcase REST Interface", :type => :request do it "responds to requests" do get "/" expect(last_response.status).to eq(200) end it "lets me request the briefcase info view in whatever format" do Brief.views[:special_format] = lambda do |briefcase, params| briefcase.as_default.merge({format: "special"}) end resp = Brief.testcase.special_format get("/info?presenter=special_format") expect(json["format"]).to eq(resp[:format]) end it "shows me all of the documents for the requested type" do get "/browse/epics" expect(json).to be_a(Array) expect(json.first).to be_a(Hash) expect(last_response.status).to eq(200) end end
Version data entries
86 entries across 86 versions & 1 rubygems