Fix indentation

pull/2103/head
Hagen Schink 10 years ago
parent 68c763a89f
commit 99a9e31d38
  1. 6
      lib/api/v3/work_packages/work_package_representer.rb
  2. 10
      spec/requests/api/v3/work_package_resource_spec.rb

@ -230,9 +230,9 @@ module API
property :due_date, getter: -> (*) { due_date.to_datetime.utc.iso8601 unless due_date.nil? }, render_nil: true
property :estimated_time,
getter: -> (*) {
{ units: I18n.t(:'datetime.units.hour', count: estimated_hours.to_i),
value: estimated_hours }
},
{ units: I18n.t(:'datetime.units.hour', count: estimated_hours.to_i),
value: estimated_hours }
},
setter: -> (value, *) { self.estimated_hours = ActiveSupport::JSON.decode(value)['value'] },
render_nil: true
property :percentage_done,

@ -351,10 +351,12 @@ h4. things we like
context 'project id' do
let(:another_project) { FactoryGirl.create(:project) }
let!(:another_membership) { FactoryGirl.create(:member,
user: current_user,
project: another_project,
roles: [role]) }
let!(:another_membership) {
FactoryGirl.create(:member,
user: current_user,
project: another_project,
roles: [role])
}
let(:params) { valid_params.merge(projectId: another_project.id) }
include_context 'patch request'

Loading…
Cancel
Save