Mailinglist Archive: yast-devel (211 mails)

< Previous Next >
[yast-devel] RSpec is green but... can you spot the problem?
I've made this mistake today:

#!/usr/bin/rspec
require "yaml"
describe "WTF" do
it "works" do
filename = "/usr/share/YaST2/data/sndcards.yml"
expect { YAML.load_file(filename).to_not raise_error }
end
end

I caught it early because I also ran the test in failing mode
(by making a deliberate syntax error in the YAML file).

--
Martin Vidner, YaST Team
http://en.opensuse.org/User:Mvidner

Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
< Previous Next >