spec/support/fixtures.rb in imap-backup-2.0.0 vs spec/support/fixtures.rb in imap-backup-2.1.0
- old
+ new
@@ -1,6 +1,6 @@
def fixture(name)
spec_root = File.expand_path("..", File.dirname(__FILE__))
fixture_path = File.join(spec_root, "fixtures", name + ".yml")
fixture = File.read(fixture_path)
- YAML.load(fixture)
+ YAML.safe_load(fixture, permitted_classes: [Symbol])
end