mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-14 04:04:23 +00:00
Add specs for CustomerAccountTransaction ability
This commit is contained in:
@@ -702,6 +702,10 @@ RSpec.describe Spree::Ability do
|
||||
is_expected.to have_ability([:admin, :index, :update], for: Customer)
|
||||
end
|
||||
|
||||
it "is able to read/write customer account transaction" do
|
||||
is_expected.to have_ability([:admin, :index, :create], for: CustomerAccountTransaction)
|
||||
end
|
||||
|
||||
context "for a given order_cycle" do
|
||||
let!(:order_cycle) { create(:simple_order_cycle, coordinator: d2) }
|
||||
let!(:exchange){
|
||||
|
||||
Reference in New Issue
Block a user