mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-28 01:53:25 +00:00
Make admin serialiser specs runnable on their own
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
require 'spec_helper'
|
||||
|
||||
module Api
|
||||
module Admin
|
||||
# Used by admin subscription form
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe Api::Admin::CustomerSerializer do
|
||||
let(:customer) { create(:customer, tag_list: "one, two, three") }
|
||||
let!(:tag_rule) { create(:tag_rule, enterprise: customer.enterprise, preferred_customer_tags: "two") }
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe Api::Admin::EnterpriseSerializer do
|
||||
let(:enterprise) { create(:distributor_enterprise) }
|
||||
it "serializes an enterprise" do
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
require 'spec_helper'
|
||||
require 'open_food_network/order_cycle_permissions'
|
||||
|
||||
describe Api::Admin::ExchangeSerializer do
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe Api::Admin::IndexEnterpriseSerializer do
|
||||
include AuthenticationWorkflow
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe Api::Admin::SubscriptionCustomerSerializer do
|
||||
let(:address) { build(:address) }
|
||||
let(:customer) { build(:customer) }
|
||||
|
||||
Reference in New Issue
Block a user