Sha256: 5dd5897a8c16f42594750f0d77e930c15cb6922d1395a1cd7d719651d3243e1c
Contents?: true
Size: 570 Bytes
Versions: 1
Compression:
Stored size: 570 Bytes
Contents
require "spec_helper" shared_examples_for "rackapp" do after(:each) do FileUtils.rm_rf @approot end it "should rackup" do genapp do get "/" last_response.body.rstrip.should == "Hello, MyApp!" get "/hi/uu59" last_response.body.should == "Hi, uu59!" get "/admin/secret" last_response.status.should == 403 last_response.body.should == "Secret zone" end end it "should rake run" do pending "jruby does not support fork" if defined? JRUBY_VERSION lambda { rake{} }.should_not raise_error end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hisyo-0.2.0 | spec/support/rackup.rb |