Permalink
Browse files

Adding rspec.

  • Loading branch information...
1 parent ca4ef4c commit 190057d781a9ba30092658319b911de4f3969ee8 @arunagw committed Nov 5, 2011
Showing with 28 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 .rspec
  3. +3 −0 omniauth-twitter.gemspec
  4. +7 −0 spec/omniauth/strategies/twitter_spec.rb
  5. +16 −0 spec/spec_helper.rb
View
@@ -2,3 +2,4 @@
.bundle
Gemfile.lock
pkg/*
+coverage
View
1 .rspec
@@ -0,0 +1 @@
+--colour
View
@@ -20,4 +20,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency 'omniauth-oauth', '~> 1.0.0.rc2'
s.add_development_dependency 'rspec', '~> 2.7'
+ s.add_development_dependency 'rack-test'
+ s.add_development_dependency 'simplecov'
+ s.add_development_dependency 'webmock'
end
@@ -0,0 +1,7 @@
+require 'spec_helper'
+
+describe OmniAuth::Strategies::Twitter do
+ it 'should do some testing' do
+ pending
+ end
+end
View
@@ -0,0 +1,16 @@
+$:.unshift File.expand_path('..', __FILE__)
+$:.unshift File.expand_path('../../lib', __FILE__)
+require 'simplecov'
+SimpleCov.start
+require 'rspec'
+require 'rack/test'
+require 'webmock/rspec'
+require 'omniauth'
+require 'omniauth-twitter'
+
+RSpec.configure do |config|
+ config.include WebMock::API
+ config.include Rack::Test::Methods
+ config.extend OmniAuth::Test::StrategyMacros, :type => :strategy
+end
+

0 comments on commit 190057d

Please sign in to comment.