Sha256: 7464cb9e4c9111f5337b8b2a3bd2e9283f11689cbf04bc8515ab0417755fc401
Contents?: true
Size: 529 Bytes
Versions: 3
Compression:
Stored size: 529 Bytes
Contents
describe 'routes' do include ActionController::UrlWriter before(:each) do Auth.configure do |config| config.authenticate :user end Auth.kick! ActionController::Routing::Routes.install_helpers([self.class]) end it "should map new_user_path to /user/new" do new_user_path.should == '/user/new' end it "should map edit_user_path to /user/edit" do edit_user_path.should == '/user/edit' end it "should map user_path to /user" do user_path.should == '/user' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sparkly-auth-1.0.2 | spec/routes_spec.rb |
sparkly-auth-1.0.1 | spec/routes_spec.rb |
sparkly-auth-1.0.0 | spec/routes_spec.rb |