Sha256: fc3acb0de145690aebacb8fc0040d9ee93a878f38da7ba03c728428584263cbf

Contents?: true

Size: 401 Bytes

Versions: 8

Compression:

Stored size: 401 Bytes

Contents

require 'test_helper'

class SettingsTest < Minitest::Test
  describe 'settings' do
    let(:home) { File.join('', 'tmp') }
    let(:sdir) { File.join(home, MikePlayer::Settings::SETTINGS_DIRECTORY) }

    before do
      Dir.delete(sdir) if Dir.exist?(sdir)
    end

    it 'creates a settings directory' do
      MikePlayer::Settings.new(home: home)
      assert(Dir.exist?(sdir))
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mikeplayer-1.0.7 test/mikeplayer/settings_test.rb
mikeplayer-1.0.6 test/mikeplayer/settings_test.rb
mikeplayer-1.0.5 test/mikeplayer/settings_test.rb
mikeplayer-1.0.4 test/mikeplayer/settings_test.rb
mikeplayer-1.0.3 test/mikeplayer/settings_test.rb
mikeplayer-1.0.2 test/mikeplayer/settings_test.rb
mikeplayer-1.0.1 test/mikeplayer/settings_test.rb
mikeplayer-1.0.0 test/mikeplayer/settings_test.rb