Sha256: 083b0a32c9c792809894f300ccc4c8178bea9677810a0bb7ec946aef6181d19e

Contents?: true

Size: 661 Bytes

Versions: 2

Compression:

Stored size: 661 Bytes

Contents

require 'pushover'

describe "Config" do
	before(:all) do
		Pushover::Config.save_file = "config_spec.tmp"
		Pushover::Config.clear
	 	Pushover::Config[:test] = true
	 	Pushover::Config.save!
	end

	it "should exist" do
		expect { Pushover::Config }.to_not be(nil)
	end

	it "should have a save_file" do
		Pushover::Config.save_file.should eq("config_spec.tmp")
	end

	it "save_dir should be the basename of save_file" do
		Pushover::Config.save_dir.should eq(File.dirname Pushover::Config.save_file)
	end

	it "should save if not empty"
	it "should make a backup"
	it "should load" do
		Pushover::Config.load
		Pushover::Config[:test].should eq(true)
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pushover-0.4.0 spec/config_spec.rb
pushover-0.3.1 spec/config_spec.rb