spec/integration/schedule_spec.rb in gooddata-0.6.26 vs spec/integration/schedule_spec.rb in gooddata-0.6.27

- old
+ new

@@ -538,11 +538,11 @@ describe '#name' do it 'should be able to get name of the schedule.' do begin schedule = @project.create_schedule(ProcessHelper::PROCESS_ID, @test_cron, ProcessHelper::DEPLOY_NAME, @test_data_with_optional_param) - expect(schedule.name).to eq 'graph.grf' + expect(schedule.name).to eq ProcessHelper::DEPLOY_NAME ensure schedule && schedule.delete end end @@ -587,10 +587,10 @@ describe '#name=' do it 'should be able to set name of the schedule.' do begin process = @project.processes(ProcessHelper::PROCESS_ID) schedule = process.create_schedule(@test_cron, ProcessHelper::DEPLOY_NAME, @test_data_with_optional_param) - expect(schedule.name).to eq 'graph.grf' + expect(schedule.name).to eq ProcessHelper::DEPLOY_NAME schedule.name = 'MY NAME' schedule.save schedule2 = process.schedules.find { |s| s.obj_id == schedule.obj_id } expect(schedule2.name).to eq 'MY NAME' ensure