Sha256: b4e99d718fb09754d202d2010c6f60e55b8faf148885b32b557a82cbce72dd69
Contents?: true
Size: 502 Bytes
Versions: 3
Compression:
Stored size: 502 Bytes
Contents
require File.expand_path("spec_helper", File.dirname(File.dirname(__FILE__))) describe "pass plugin" do it "executes on no arguments" do app(:pass) do |r| r.on :id do |id| r.pass if id == 'foo' id end r.on ":x/:y" do |x, y| x + y end end body("/a").should == 'a' body("/a/b").should == 'a' body("/foo/a").should == 'fooa' body("/foo/a/b").should == 'fooa' status("/foo").should == 404 status.should == 404 end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
roda-cj-0.9.2 | spec/plugin/pass_spec.rb |
roda-cj-0.9.1 | spec/plugin/pass_spec.rb |
roda-0.9.0 | spec/plugin/pass_spec.rb |