Permalink
Browse files

Introduced initial spec structure and rakefile.

  • Loading branch information...
1 parent c81303d commit 2c3072aea7b0cfa11c39a332f66a2b786b867e69 @pmoran pmoran committed with Nov 26, 2009
Showing with 26 additions and 0 deletions.
  1. +13 −0 Rakefile
  2. +3 −0 spec/spec_helper.rb
  3. +10 −0 spec/yammer/client_spec.rb
View
@@ -0,0 +1,13 @@
+$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
+
+require 'rubygems'
+require 'rake'
+require 'spec/rake/spectask'
+require 'yammer4r'
+
+desc "Run all specs"
+Spec::Rake::SpecTask.new('spec') do |t|
+ t.spec_files = FileList['spec/**/*spec.rb']
+end
+
+task :default => [:spec]
View
@@ -0,0 +1,3 @@
+$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib"))
+require 'yammer4r'
+require 'spec'
View
@@ -0,0 +1,10 @@
+require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'ostruct'
+
+describe Yammer::Client do
+
+ it "can be created" do
+ Yammer::Client.new(:consumer => {}, :access => {}).should_not be_nil
+ end
+
+end

0 comments on commit 2c3072a

Please sign in to comment.