2019-10-09 22:52:55 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
module DiscoursePatrons
|
|
|
|
RSpec.describe PlansController do
|
|
|
|
describe "index" do
|
2019-10-23 19:39:10 -04:00
|
|
|
it "lists the active plans" do
|
|
|
|
::Stripe::Plan.expects(:list).with(active: true)
|
2019-10-09 22:52:55 -04:00
|
|
|
get "/patrons/plans.json"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|