Permalink
Browse files

Add rspec

  • Loading branch information...
1 parent 6fabc03 commit 4f9558c867eb7bb936e3d4d28ef47cbbdd8916b4 @MSch committed Sep 13, 2010
Showing with 29 additions and 1 deletion.
  1. +11 −1 Gemfile.lock
  2. +1 −0 devise-twitter.gemspec
  3. +17 −0 spec/spec_helper.rb
View
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- devise-twitter (0.0.1)
+ devise-twitter (0.1.1)
devise (>= 1.1.0)
warden_oauth (~> 0.1.1)
@@ -12,8 +12,17 @@ GEM
devise (1.1.2)
bcrypt-ruby (~> 2.1.2)
warden (~> 0.10.7)
+ diff-lcs (1.1.2)
oauth (0.4.3)
rack (1.2.1)
+ rspec (2.0.0.beta.20)
+ rspec-core (= 2.0.0.beta.20)
+ rspec-expectations (= 2.0.0.beta.20)
+ rspec-mocks (= 2.0.0.beta.20)
+ rspec-core (2.0.0.beta.20)
+ rspec-expectations (2.0.0.beta.20)
+ diff-lcs (>= 1.1.2)
+ rspec-mocks (2.0.0.beta.20)
warden (0.10.7)
rack (>= 1.0.0)
warden_oauth (0.1.1)
@@ -27,4 +36,5 @@ DEPENDENCIES
bundler (>= 1.0.0)
devise (>= 1.1.0)
devise-twitter!
+ rspec (~> 2.0.0.beta)
warden_oauth (~> 0.1.1)
View
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
s.add_dependency "devise", ">= 1.1.0"
s.add_dependency "warden_oauth", "~> 0.1.1"
s.add_development_dependency "bundler", ">= 1.0.0"
+ s.add_development_dependency "rspec", "~> 2.0.0.beta"
s.files = `git ls-files`.split("\n")
s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
View
@@ -0,0 +1,17 @@
+require 'rspec'
+
+# Requires supporting files with custom matchers and macros, etc,
+# in ./support/ and its subdirectories.
+Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
+
+RSpec.configure do |config|
+ # == Mock Framework
+ #
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
+ #
+ # config.mock_with :mocha
+ # config.mock_with :flexmock
+ # config.mock_with :rr
+ config.mock_with :rspec
+end
+

0 comments on commit 4f9558c

Please sign in to comment.