Sha256: 07e875271aea690acd21659fb529587b58a0576942413c412c487b98d38ad4b9
Contents?: true
Size: 654 Bytes
Versions: 2
Compression:
Stored size: 654 Bytes
Contents
# frozen_string_literal: true # This file is part of Alexandria. # # See the file README.md for authorship and licensing information. require File.dirname(__FILE__) + "/../spec_helper" describe Alexandria::Preferences do let(:instance) { described_class.instance } it "returns nil fetching unknown setting" do expect(instance.does_not_exist).to eq nil end it "allows setting known setting to false" do instance.toolbar_visible = false expect(instance.toolbar_visible).to eq false end it "resets known setting by setting to nil" do instance.toolbar_visible = nil expect(instance.toolbar_visible).to eq true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alexandria-book-collection-manager-0.7.5 | spec/alexandria/preferences_spec.rb |
alexandria-book-collection-manager-0.7.4 | spec/alexandria/preferences_spec.rb |