Sha256: 958d349ad6881c22f36c7b5a81b8e328a576a0791e0e54e77c2547c7ccac7209

Contents?: true

Size: 356 Bytes

Versions: 6

Compression:

Stored size: 356 Bytes

Contents

require_relative '../test_case'

class SettingsTest < TestCase
  def test_default
    refute Staticpress::Settings.instance.verbose
  end

  def test_set!
    assert_equal nil, Staticpress::Settings.instance.favorite_number
    Staticpress::Settings.set! :favorite_number => 42
    assert_equal 42, Staticpress::Settings.instance.favorite_number
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
staticpress-0.6.2 tests/staticpress/settings_test.rb
staticpress-0.6.1 tests/staticpress/settings_test.rb
staticpress-0.6.0 tests/staticpress/settings_test.rb
staticpress-0.5.2 tests/staticpress/settings_test.rb
staticpress-0.5.1 tests/staticpress/settings_test.rb
staticpress-0.5.0 tests/staticpress/settings_test.rb