Sha256: e2f6fee8019bca1db6852e0ae4d202d4c117e14a997f7a75d687f03ec28e354d
Contents?: true
Size: 861 Bytes
Versions: 3
Compression:
Stored size: 861 Bytes
Contents
require "spec_helper" describe Docks::Languages::Base do subject { Docks::Languages::Base.instance } describe "#load_stub" do it "doesn't do anything to load a stub file" do expect(subject.load_stub("foo.bar")).to be nil end end end describe Docks::Languages do subject { Docks::Languages } describe ".bundled_languages" do it "has all bundled languages except the base language" do bundled_languages = subject.bundled_languages subject.constants.each do |const| klass = subject.const_get(const) next unless Class === klass && !(klass.eql?(subject::Base)) expect(bundled_languages).to include klass end end it "caches the bundled languages for subsequent calls" do before = subject.bundled_languages expect(subject.bundled_languages).to be before end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
docks_app-0.0.3 | spec/lib/languages/base_language_spec.rb |
docks_app-0.0.2 | spec/lib/languages/base_language_spec.rb |
docks_app-0.0.1 | spec/lib/languages/base_language_spec.rb |