Sha256: 4b04f5814ea635576effbf8e8bb00aecb3a9c071b475d96f2c9ddce71d8a7366
Contents?: true
Size: 823 Bytes
Versions: 3
Compression:
Stored size: 823 Bytes
Contents
require "spec_helper" describe Docks::Themes do subject { described_class } let(:theme) { described_class::API } describe ".for" do it "gets the theme from a string" do expect(described_class.for("API")).to be_a theme end it "gets the theme from a symbol" do expect(described_class.for(:API)).to be_a theme end it "gets the theme from a class" do expect(described_class.for(theme)).to be_a theme end it "gets the theme from an instance" do expect(described_class.for(theme.instance)).to be_a theme end it "sets the theme to be false if it can't be required" do expect(described_class.for(:FOO)).to be false end it "doesn't throw an error when it fails" do expect { described_class.for(:FOO) }.not_to raise_error end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
docks_app-0.0.3 | spec/lib/themes_spec.rb |
docks_app-0.0.2 | spec/lib/themes_spec.rb |
docks_app-0.0.1 | spec/lib/themes_spec.rb |