8 changed files with 18 additions and 18 deletions
@ -1,10 +0,0 @@ |
|||||||
class Form::Sales::Property::Sections::PropertyInformation < ::Form::Section |
|
||||||
def initialize(id, hsh, form) |
|
||||||
super |
|
||||||
@id = "property_information" |
|
||||||
@label = "Property information" |
|
||||||
@description = "" |
|
||||||
@form = form |
|
||||||
@subsections = [Form::Sales::Property::Subsections::PropertyInformation.new(nil, nil, self)] || [] |
|
||||||
end |
|
||||||
end |
|
@ -1,4 +1,4 @@ |
|||||||
class Form::Sales::Property::Questions::PropertyNumberOfBedrooms < ::Form::Question |
class Form::Sales::Questions::PropertyNumberOfBedrooms < ::Form::Question |
||||||
def initialize(id, hsh, page) |
def initialize(id, hsh, page) |
||||||
super |
super |
||||||
@id = "beds" |
@id = "beds" |
@ -0,0 +1,10 @@ |
|||||||
|
class Form::Sales::Sections::PropertyInformation < ::Form::Section |
||||||
|
def initialize(id, hsh, form) |
||||||
|
super |
||||||
|
@id = "property_information" |
||||||
|
@label = "Property information" |
||||||
|
@description = "" |
||||||
|
@form = form |
||||||
|
@subsections = [Form::Sales::Subsections::PropertyInformation.new(nil, nil, self)] || [] |
||||||
|
end |
||||||
|
end |
@ -1,6 +1,6 @@ |
|||||||
require "rails_helper" |
require "rails_helper" |
||||||
|
|
||||||
RSpec.describe Form::Sales::Property::Pages::PropertyNumberOfBedrooms, type: :model do |
RSpec.describe Form::Sales::Pages::PropertyNumberOfBedrooms, type: :model do |
||||||
subject(:page) { described_class.new(page_id, page_definition, subsection) } |
subject(:page) { described_class.new(page_id, page_definition, subsection) } |
||||||
|
|
||||||
let(:page_id) { nil } |
let(:page_id) { nil } |
@ -1,6 +1,6 @@ |
|||||||
require "rails_helper" |
require "rails_helper" |
||||||
|
|
||||||
RSpec.describe Form::Sales::Property::Questions::PropertyNumberOfBedrooms, type: :model do |
RSpec.describe Form::Sales::Questions::PropertyNumberOfBedrooms, type: :model do |
||||||
subject(:question) { described_class.new(question_id, question_definition, page) } |
subject(:question) { described_class.new(question_id, question_definition, page) } |
||||||
|
|
||||||
let(:question_id) { nil } |
let(:question_id) { nil } |
Loading…
Reference in new issue