Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 1142 Bytes
1 | Before do |
2 | Radiant::Cache.use_x_sendfile = false |
3 | Radiant::Cache.use_x_accel_redirect = nil |
4 | end |
5 | |
6 | Given /^the page cache is clear$/ do |
7 | # No-op until we have Rack::Cache installed |
8 | Radiant::Cache.clear if defined?(Radiant::Cache) |
9 | end |
10 | |
11 | Then /^I should get a (\d+) response code$/ do |code| |
12 | response.response_code.should == code.to_i |
13 | end |
14 | |
15 | Given /^I have turned on X\-Sendfile headers$/ do |
16 | Radiant::Cache.use_x_sendfile = true |
17 | end |
18 | |
19 | Then /^I should( not)? get an "([^\"]*)" header in the response$/ do |status, header_key| |
20 | if status.nil? |
21 | response.headers.to_hash[header_key].should_not be_empty |
22 | else |
23 | response.headers.to_hash[header_key].should be_empty |
24 | end |
25 | end |
26 | |
27 | Given /^I have turned on X\-Accel\-Redirect headers$/ do |
28 | Radiant::Cache.use_x_accel_redirect = "/cache" |
29 | end |
30 | |
31 | Given /^I have page caching (on|off)$/ do |status| |
32 | set_page_cache status |
33 | end |
34 | |
35 | Then /^The "([^\"]*)" header should be "([^\"]*)"$/ do |header_key, value| |
36 | response.headers.to_hash[header_key].should =~ Regexp.new(value) |
37 | end |
38 | |
39 | def set_page_cache(status) |
40 | Page.class_eval %{ |
41 | def cache? |
42 | #{status != 'off'} |
43 | end |
44 | }, __FILE__, __LINE__ |
45 | end |
46 |