describe file('/boot/cmdline.txt') do
  it { should be_file }
  it { should be_mode 755 }
  it { should be_owned_by 'root' }
  its(:content) { should match /console=tty1/ }
  its(:content) { should match /console=ttyAMA0,115200/ }
  its(:content) { should match /kgdboc=ttyAMA0,115200/ }
end

describe file('/boot/cmdline.txt') do
  it { should be_file }
  it { should be_mode 755 }
  it { should be_owned_by 'root' }
  its(:content) { should match /console=tty1/ }
  its(:content) { should match /console=ttyAMA0,115200/ }
end

Fix test for kgdboc= entry in cmdline.txt
Fix test for kgdboc= entry in cmdline.txt

Signed-off-by: Dieter Reuter <554783fc552b5b2a46dd3d7d7b9b2cce9a82c122@me.com>
