mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
parent
febbe1282d
commit
450a95f628
3 changed files with 19 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
class User < ActiveRecord::Base
|
class User < ActiveRecord::Base
|
||||||
include Versions # version/user_version.rb
|
include Versions # version/user_version.rb
|
||||||
devise :database_authenticatable, :trackable, :timeoutable
|
devise :trackable, :timeoutable
|
||||||
|
|
||||||
attr_accessor :phone
|
attr_accessor :phone
|
||||||
|
|
||||||
|
|
9
spec/routing/registrar/domains_routing_spec.rb
Normal file
9
spec/routing/registrar/domains_routing_spec.rb
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
require 'rails_helper'
|
||||||
|
|
||||||
|
RSpec.describe Registrar::DomainsController do
|
||||||
|
describe 'routing' do
|
||||||
|
it 'routes to #index' do
|
||||||
|
expect(get: '/registrar/domains').to route_to('registrar/domains#index')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
9
spec/routing/registrar/sessions_routing_spec.rb
Normal file
9
spec/routing/registrar/sessions_routing_spec.rb
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
require 'rails_helper'
|
||||||
|
|
||||||
|
RSpec.describe Registrar::SessionsController do
|
||||||
|
describe 'routing' do
|
||||||
|
it 'routes to #login' do
|
||||||
|
expect(get: '/registrar/login').to route_to('registrar/sessions#login')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue