Sha256: e95220b7b5a40bf85ce146e687887db6d44e894414693856babee95d7b50891e

Contents?: true

Size: 650 Bytes

Versions: 7

Compression:

Stored size: 650 Bytes

Contents

require_relative "spec_helper"
require "lanes/cli"
require "find"

describe Lanes::SystemSettings do

    setup do
        # needed because otherwise the rollback will leave configs without a db record
        Lanes::SystemSettings.instance_variable_set(:@config, nil)
    end

    def test_getting_config
        assert_kind_of Lanes::SystemSettings::ExtensionSettings, Lanes::SystemSettings.for_ext('foo')
    end

    def test_persisting_config
        settings = Lanes::SystemSettings.for_ext('foo')
        settings.foo = 'bar'
        settings.persist!
        assert_equal({foo: 'bar'}, Lanes::SystemSettings.for_ext('foo').to_h)
    end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lanes-0.6.1 spec/server/system_settings_spec.rb
lanes-0.6.0 spec/server/system_settings_spec.rb
lanes-0.5.6 spec/server/system_settings_spec.rb
lanes-0.5.5 spec/server/system_settings_spec.rb
lanes-0.5.0 spec/server/system_settings_spec.rb
lanes-0.4.0 spec/server/system_settings_spec.rb
lanes-0.3.0 spec/server/system_settings_spec.rb