Sha256: cda5c573a232f7a9c0e9d97b3371b806051eecf9af44426ce0a7a190a0e7517b
Contents?: true
Size: 583 Bytes
Versions: 3
Compression:
Stored size: 583 Bytes
Contents
require "spec_helper" describe Docks::Languages::YAML do subject { Docks::Languages::YAML.instance } describe ".extensions" do let(:extensions) { [subject.class.extensions].flatten } it "includes .erb as an extension" do expect(extensions).to include "yml" end end describe "#load_stub" do let(:stub_file) { File.expand_path("../../../fixtures/languages/stub.yml", __FILE__) } let(:expected_stub) do { "foo" => "bar" } end it "loads a stub file" do expect(subject.load_stub(stub_file)).to eq expected_stub end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
docks_app-0.0.3 | spec/lib/languages/yaml_language_spec.rb |
docks_app-0.0.2 | spec/lib/languages/yaml_language_spec.rb |
docks_app-0.0.1 | spec/lib/languages/yaml_language_spec.rb |