spec/groupdocs/questionnaire/page_spec.rb in groupdocs-1.1.0 vs spec/groupdocs/questionnaire/page_spec.rb in groupdocs-1.2.0
- old
+ new
@@ -2,15 +2,12 @@
describe GroupDocs::Questionnaire::Page do
it_behaves_like GroupDocs::Api::Entity
- it { should respond_to(:questions) }
- it { should respond_to(:questions=) }
- it { should respond_to(:number) }
- it { should respond_to(:number=) }
- it { should respond_to(:title) }
- it { should respond_to(:title=) }
+ it { should have_accessor(:questions) }
+ it { should have_accessor(:number) }
+ it { should have_accessor(:title) }
describe '#questions=' do
it 'converts each question to GroupDocs::Questionnaire::Question object if hash is passed' do
subject.questions = [{ field: 'Field1', text: 'Text1', def_answer: 'A1' }]
questions = subject.questions