test/factories/task_factory.rb in foreman-tasks-0.8.6 vs test/factories/task_factory.rb in foreman-tasks-0.9.0

- old
+ new

@@ -12,16 +12,16 @@ after(:create) do |task, evaluator| ForemanTasks::Lock.owner!(evaluator.set_owner, task.id) if evaluator.set_owner end factory :dynflow_task, :class => ForemanTasks::Task::DynflowTask do - label "Support::DummyDynflowAction" - type "ForemanTasks::Task::DynflowTask" - started_at "2014-10-01 11:15:55" - ended_at "2014-10-01 11:15:57" - state "stopped" - result "success" + label 'Support::DummyDynflowAction' + type 'ForemanTasks::Task::DynflowTask' + started_at '2014-10-01 11:15:55' + ended_at '2014-10-01 11:15:57' + state 'stopped' + result 'success' parent_task_id nil transient do sync_with_dynflow false end @@ -35,14 +35,14 @@ task.update_from_dynflow(execution_plan.to_hash) end end trait :user_create_task do - label "Actions::User::Create" + label 'Actions::User::Create' end trait :product_create_task do - label "Actions::Katello::Product::Create" + label 'Actions::Katello::Product::Create' end trait :inconsistent_dynflow_task do after(:build) do |task| task.update_attributes!(:state => 'running')