3 changed files with 4 additions and 4 deletions
@ -1,4 +1,4 @@ |
|||||||
class Form::Sales::Pages::Discount < ::Form::Page |
class Form::Sales::Pages::DepositDiscount < ::Form::Page |
||||||
def initialize(id, hsh, subsection, optional:) |
def initialize(id, hsh, subsection, optional:) |
||||||
super(id, hsh, subsection) |
super(id, hsh, subsection) |
||||||
@optional = optional |
@optional = optional |
||||||
@ -1,6 +1,6 @@ |
|||||||
require "rails_helper" |
require "rails_helper" |
||||||
|
|
||||||
RSpec.describe Form::Sales::Pages::Discount, type: :model do |
RSpec.describe Form::Sales::Pages::DepositDiscount, type: :model do |
||||||
subject(:page) { described_class.new(page_id, page_definition, subsection, optional: false) } |
subject(:page) { described_class.new(page_id, page_definition, subsection, optional: false) } |
||||||
|
|
||||||
let(:page_id) { "discount" } |
let(:page_id) { "discount" } |
||||||
Loading…
Reference in new issue