spec/lib/yaml_spec.rb in foreplay-0.11.2 vs spec/lib/yaml_spec.rb in foreplay-0.13.0
- old
+ new
@@ -1,20 +1,20 @@
describe YAML do
context '#escape' do
it 'uses the expected Ruby version' do
- expect(RUBY_VERSION).to eq '1.9.3'
+ expect(RUBY_VERSION).to eq '2.1.6'
end
it 'uses the expected YAML version' do
- expect(YAML::VERSION).to eq '1.3.4' # The escaping below changes with different YAML versions
+ expect(YAML::VERSION).to eq '2.0.5' # The escaping below changes with different YAML versions
end
it 'correctly escape a basic string' do
expect(YAML.escape 'brian').to eq('brian')
end
it 'correctly escape a troublesome string' do
- expect(YAML.escape '{{moustache}} beard').to eq("! '{{moustache}} beard'")
+ expect(YAML.escape '{{moustache}} beard').to eq('"{{moustache}} beard"')
expect(YAML.escape "Brian O'Brien").to eq("Brian O'Brien")
end
end
end