Sha256: 9715a04f5265105ffee2ce14b35ad1b2e6c3dd8c994a979ca820e08f1e56a314

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

require 'spec_helper'

describe "routes for devise_authy" do
  it "route to devise_authy#GET_verify_authy" do
    expect(get('/users/verify_authy')).to route_to("devise/devise_authy#GET_verify_authy")
  end

  it "routes to devise_authy#POST_verify_authy" do
    expect(post('/users/verify_authy')).to route_to("devise/devise_authy#POST_verify_authy")
  end

  it "routes to devise_authy#GET_enable_authy" do
    expect(get('/users/enable_authy')).to route_to("devise/devise_authy#GET_enable_authy")
  end

  it "routes to devise_authy#POST_enable_authy" do
    expect(post('/users/enable_authy')).to route_to("devise/devise_authy#POST_enable_authy")
  end

  it "route to devise_authy#GET_verify_authy_installation" do
    expect(get('/users/verify_authy_installation')).to route_to("devise/devise_authy#GET_verify_authy_installation")
  end

  it "routes to devise_authy#POST_verify_authy_installation" do
    expect(post('/users/verify_authy_installation')).to route_to("devise/devise_authy#POST_verify_authy_installation")
  end

  it "routes to devise_authy#request_sms" do
    expect(post('/users/request-sms')).to route_to("devise/devise_authy#request_sms")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
devise-authy-1.8.1 spec/routing/routes_spec.rb
devise-authy-1.8.0 spec/routing/routes_spec.rb