Sha256: aeee33e8ccb8c595a4bfb613b41c5466a7cfa3733fe15b3506373b4210ce29a3

Contents?: true

Size: 458 Bytes

Versions: 3

Compression:

Stored size: 458 Bytes

Contents

require "spec_helper"

describe "Routing for Posts" do
  it "maps GET ':mount_point/posts/:provider/callback' to #create" do
    expect(:get => '/posts/example/callback').to route_to('corkboard/posts#create', {
      :provider => 'example'
    })
  end

  it "maps POST ':mount_point/posts/:provider/callback' to #create" do
    expect(:post => '/posts/example/callback').to route_to('corkboard/posts#create', {
      :provider => 'example'
    })
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
corkboard-0.1.3 spec/routing/posts_routing_spec.rb
corkboard-0.1.2 spec/routing/posts_routing_spec.rb
corkboard-0.1.1 spec/routing/posts_routing_spec.rb