spec/groupdocs/questionnaire/execution_spec.rb in groupdocs-0.3.5 vs spec/groupdocs/questionnaire/execution_spec.rb in groupdocs-0.3.6
- old
+ new
@@ -16,54 +16,25 @@
GroupDocs::Questionnaire.should_receive(:executions!).with({})
described_class.all!
end
end
- it { should respond_to(:id) }
- it { should respond_to(:id=) }
- it { should respond_to(:ownerId) }
- it { should respond_to(:ownerId=) }
- it { should respond_to(:questionnaireId) }
- it { should respond_to(:questionnaireId=) }
- it { should respond_to(:executiveId) }
- it { should respond_to(:executiveId=) }
- it { should respond_to(:approverId) }
- it { should respond_to(:approverId=) }
- it { should respond_to(:datasourceId) }
- it { should respond_to(:datasourceId=) }
- it { should respond_to(:documentId) }
- it { should respond_to(:documentId=) }
- it { should respond_to(:status) }
- it { should respond_to(:status=) }
- it { should respond_to(:guid) }
- it { should respond_to(:guid=) }
-
- it 'has human-readable accessors' do
- subject.should respond_to(:owner_id)
- subject.should respond_to(:owner_id=)
- subject.should respond_to(:questionnaire_id)
- subject.should respond_to(:questionnaire_id=)
- subject.should respond_to(:executive_id)
- subject.should respond_to(:executive_id=)
- subject.should respond_to(:approver_id)
- subject.should respond_to(:approver_id=)
- subject.should respond_to(:datasource_id)
- subject.should respond_to(:datasource_id=)
- subject.should respond_to(:document_id)
- subject.should respond_to(:document_id=)
- subject.method(:owner_id).should == subject.method(:ownerId)
- subject.method(:owner_id=).should == subject.method(:ownerId=)
- subject.method(:questionnaire_id).should == subject.method(:questionnaireId)
- subject.method(:questionnaire_id=).should == subject.method(:questionnaireId=)
- subject.method(:executive_id).should == subject.method(:executiveId)
- subject.method(:executive_id=).should == subject.method(:executiveId=)
- subject.method(:approver_id).should == subject.method(:approverId)
- subject.method(:approver_id=).should == subject.method(:approverId=)
- subject.method(:datasource_id).should == subject.method(:datasourceId)
- subject.method(:datasource_id=).should == subject.method(:datasourceId=)
- subject.method(:document_id).should == subject.method(:documentId)
- subject.method(:document_id=).should == subject.method(:documentId=)
- end
+ it { should respond_to(:id) }
+ it { should respond_to(:id=) }
+ it { should respond_to(:questionnaire_id) }
+ it { should respond_to(:questionnaire_id=) }
+ it { should respond_to(:owner) }
+ it { should respond_to(:owner=) }
+ it { should respond_to(:executive) }
+ it { should respond_to(:executive=) }
+ it { should respond_to(:approver) }
+ it { should respond_to(:approver=) }
+ it { should respond_to(:datasource_id) }
+ it { should respond_to(:datasource_id=) }
+ it { should respond_to(:status) }
+ it { should respond_to(:status=) }
+ it { should respond_to(:guid) }
+ it { should respond_to(:guid=) }
describe '#set_status!' do
before(:each) do
mock_api_server(load_json('questionnaire_execution_status_set'))
end