0

The below code is throwing error stating : expected : "2:30:30 AM" got: #<RSpec::Core::Example "NextRunTime">

describe command("Get-ScheduledTaskInfo 'Restart'") do
it {should exist}
input('NextRunTime', value: "2:30:30 AM")
  describe input('NextRunTime') do 
    puts "Assertion of NextRunTime"
    it { should cmp "2:30:30 AM" } 
  end
end

If we just use describe input('aaa') inside a control block, then it would work fine without any errors. But when it is being used inside a describe command('bbb') block, then it's throwing the error.

0 Answers0