discourse-subscriptions/spec/requests/plans_controller_spec.rb

15 lines
295 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
module DiscoursePatrons
RSpec.describe PlansController do
describe "index" do
it "lists the active plans" do
::Stripe::Plan.expects(:list).with(active: true)
get "/patrons/plans.json"
end
end
end
end