Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding rspec.

  • Loading branch information...
commit 190057d781a9ba30092658319b911de4f3969ee8 1 parent ca4ef4c
@arunagw authored
View
1  .gitignore
@@ -2,3 +2,4 @@
.bundle
Gemfile.lock
pkg/*
+coverage
View
1  .rspec
@@ -0,0 +1 @@
+--colour
View
3  omniauth-twitter.gemspec
@@ -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
View
7 spec/omniauth/strategies/twitter_spec.rb
@@ -0,0 +1,7 @@
+require 'spec_helper'
+
+describe OmniAuth::Strategies::Twitter do
+ it 'should do some testing' do
+ pending
+ end
+end
View
16 spec/spec_helper.rb
@@ -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
+
Please sign in to comment.
Something went wrong with that request. Please try again.