diff options
Diffstat (limited to 'spec/ruby/library/yaml/parse_file_spec.rb')
| -rw-r--r-- | spec/ruby/library/yaml/parse_file_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/ruby/library/yaml/parse_file_spec.rb b/spec/ruby/library/yaml/parse_file_spec.rb new file mode 100644 index 0000000000..a29377f163 --- /dev/null +++ b/spec/ruby/library/yaml/parse_file_spec.rb @@ -0,0 +1,10 @@ +require_relative '../../spec_helper' + +require 'yaml' + +describe "YAML.parse_file" do + it "returns a YAML::Syck::Map object after parsing a YAML file" do + test_parse_file = fixture __FILE__, "test_yaml.yml" + YAML.parse_file(test_parse_file).should.is_a?(Psych::Nodes::Document) + end +end |
