Skip to content
This repository has been archived by the owner on Jan 30, 2019. It is now read-only.

Commit

Permalink
adding specs for main module
Browse files Browse the repository at this point in the history
  • Loading branch information
Dale Campbell committed Sep 28, 2008
1 parent ce0b3a5 commit da24597
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions spec/pingfm_spec.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
# $Id$
# TODO: LOTS of repetition here that can probably be refactored a bit.
# TODO: Split these specs into a pingfm/ subdirectory, moving the client specs into their own file.

require File.join(File.dirname(__FILE__), %w[spec_helper])

describe Pingfm::Client, " with expected results" do
describe Pingfm, 'main module' do
it 'should return the version string' do
Pingfm.version.should be_a_kind_of(String)
end

it 'should return the library path' do
Pingfm.libpath.should eql(Pingfm::LIBPATH)
end

it 'should return the path to the library' do
Pingfm.path.should eql(Pingfm::PATH)
end
end

describe Pingfm::Client, "with expected results" do

before(:each) do
@client = Pingfm::Client.new('a','b')
Expand Down Expand Up @@ -153,7 +168,7 @@

end

describe Pingfm::Client, " with error messages" do
describe Pingfm::Client, "with error messages" do
before(:each) do
@client = Pingfm::Client.new('a','b')
@params = {'api_key' => 'a', 'user_app_key' => 'b'}
Expand Down

0 comments on commit da24597

Please sign in to comment.