Sha256: a5c0f9ef9eae6bc917290e2a0698f1b4b83adda6dc8433b65936711566debcf2
Contents?: true
Size: 660 Bytes
Versions: 14
Compression:
Stored size: 660 Bytes
Contents
require 'spec_helper' require 'stringio' describe Jax::Routes do before(:each) { @out = ""; @io = StringIO.new(@out) } it "should map root" do subject.root "welcome" subject.compile(@io) @out.strip.should == 'Jax.routes.root(WelcomeController, "index");' end it "should map" do subject.map "path/to", "welcome" subject.compile(@io) @out.strip.should == 'Jax.routes.map("path/to", WelcomeController, "index");' end it "should map with action name" do subject.map "path/to", "welcome", "another" subject.compile(@io) @out.strip.should == 'Jax.routes.map("path/to", WelcomeController, "another");' end end
Version data entries
14 entries across 14 versions & 1 rubygems