Sha256: 4ea9106c579b3e6be4249a7da76fd40ecacd3152fdeaa600425b5121e0a83a1c
Contents?: true
Size: 865 Bytes
Versions: 10
Compression:
Stored size: 865 Bytes
Contents
require "spec_helper" require "nabaztag_hack_kit/server" describe NabaztagHackKit::Server do let(:app) { NabaztagHackKit::Server.new } describe "#bc.jsp" do def do_action(path) app.call({ 'REQUEST_METHOD' => 'GET', 'PATH_INFO' => path, 'rack.input' => StringIO.new }) end it "reads from public/bytecode.bin" do pending app.should_receive(:send_file).with("public/bytecode.bin") do_action '/bc.jsp' end context "with custom bin code route" do let(:app) { NabaztagHackKit::Server.new(custom_route) } let(:custom_route) { "bytecode.bin" } it "reads from" do pending app.should_receive(:send_file).with(custom_route) do_action '/bc.jsp' end end end describe "#on" do it "accepts" do pending end end end
Version data entries
10 entries across 10 versions & 1 rubygems