Sha256: 97d6d253eb66364113c1468f4319f474400d2465434a397f1e26e485c7569c04
Contents?: true
Size: 684 Bytes
Versions: 4
Compression:
Stored size: 684 Bytes
Contents
require "spec_helper" describe "Admin::Entries" do include Rack::Test::Methods let(:env) do { "HTTP_ACCEPT" => "application/json" } end let(:params) do {} end let(:app) do lambda do |env| [ 200, { "Content-Type" => "application/json" }, [ [ { title: "Test Title", body: "Lorem Ipsum", }, ].to_json, ], ] end end describe "GET /admin/entries" do context "with Rack::Test", :autodoc do it "returns entries" do get "/admin/entries", params, env last_response.status.should == 200 end end end end
Version data entries
4 entries across 4 versions & 1 rubygems