1
0
mirror of synced 2026-08-05 22:56:55 +00:00

product controller

This commit is contained in:
Rimian Perkins
2019-10-25 08:18:16 +11:00
parent 5f71def8a4
commit 6fbcea2cf3
8 changed files with 55 additions and 3 deletions
+14
View File
@@ -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