spec/stasis/server_spec.rb in stasis-0.1.9 vs spec/stasis/server_spec.rb in stasis-0.1.10
- old
+ new
@@ -25,9 +25,19 @@
new_time_from_file = $files['time.html'].split("time")[1].strip
new_time_from_file.should == new_time
new_time_from_file.should_not == time
end
+ it "should pass params" do
+ params = Stasis::Server.push(
+ :paths => [ 'params.html.haml' ],
+ :params => { :test => true },
+ :redis => 'localhost:6379/0',
+ :return => true
+ )['params.html.haml'].split("params")[1].strip
+ eval(params).should == { :test => true }
+ end
+
it "should expire after ttl" do
time = Stasis::Server.push(
:paths => [ 'time.html.haml' ],
:redis => 'localhost:6379/0',
:return => true,