Sha256: dda7ca97cc48949b4fc65c29851ec2a076cea80328ddb173402c1953b55f609a

Contents?: true

Size: 574 Bytes

Versions: 6

Compression:

Stored size: 574 Bytes

Contents

require "spec_helper"

RSpec.describe "routes for Pinfirmable", type: :routing do
  it "routes /users/confirmemail to the pinfirmable controller" do
    expect(get("/users/confirmemail")).to route_to("devise/pinfirmable#new")
  end

  it "routes /users/pinfirmable to the pinfirmable controller" do
    expect(post("/users/pinfirmable")).to route_to("devise/pinfirmable#create")
  end

  it "routes /users/pinfirmable/resend_email to the pinfirmable controller" do
    expect(post("/users/pinfirmable/resend_email")).to route_to("devise/pinfirmable#resend_email")
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pinfirmable-0.1.5 spec/routing/pinfirmable_routing_spec.rb
pinfirmable-0.1.4 spec/routing/pinfirmable_routing_spec.rb
pinfirmable-0.1.3 spec/routing/pinfirmable_routing_spec.rb
pinfirmable-0.1.2 spec/routing/pinfirmable_routing_spec.rb
pinfirmable-0.1.1 spec/routing/pinfirmable_routing_spec.rb
pinfirmable-0.1.0 spec/routing/pinfirmable_routing_spec.rb