product controller
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'rails_helper'
|
||||
|
||||
module DiscoursePatrons
|
||||
RSpec.describe ProductsController do
|
||||
describe "index" do
|
||||
it "lists the active products" do
|
||||
::Stripe::Product.expects(:list).with(active: true)
|
||||
get "/patrons/products.json"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user