Skip to content

Commit

Permalink
Add rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
MSch committed Sep 13, 2010
1 parent 6fabc03 commit 4f9558c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -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)

Expand All @@ -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)
Expand All @@ -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)
1 change: 1 addition & 0 deletions devise-twitter.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -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.