Sha256: 85c55aa886d85682be963beab7ef7f95038147b952a31f1c82dbdcc241aab69c

Contents?: true

Size: 554 Bytes

Versions: 1

Compression:

Stored size: 554 Bytes

Contents

require 'pushover'

include Pushover

describe "application" do
	before(:each) do
		Bini.config.file = "tmp/test.save"
		Bini.config.clear
	end

	it "can add a application to the Config[:application] hash." do
		App.add "foo", "bar"
		Bini.config[:applications]["foo"].should eq("bar")
	end

	it "can remove a application from the hash." do
		App.add "foo", "bar"
    App.remove "foo"
    Bini.config[:applications]["foo"].should be_nil
  end

	it "can find the apikey from the name" do
		App.add "foo", "bar"
		App.find("foo").should eq("bar")
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pushover-0.5.0 spec/lib/pushover/app_spec.rb