This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe "Without logging in" do | |
| describe "a request to /foo/bar" do | |
| before(:each) do | |
| get("/foo/bar") | |
| end | |
| it "redirects" do | |
| rack.status.should == 302 | |
| end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def requirable?(filename) | |
| result = fork do | |
| begin | |
| require filename | |
| exit!(0) | |
| rescue | |
| exit!(1) | |
| end | |
| end | |
| result == 0 ? true : false |
NewerOlder