Skip to content

Commit

Permalink
Install rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelias committed Nov 16, 2011
1 parent ef15115 commit 38c6b5e
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--colour
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ gem "jquery-rails"

# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'

15 changes: 15 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ GEM
multi_json (~> 1.0)
arel (2.2.1)
builder (3.0.0)
diff-lcs (1.1.3)
erubis (2.7.0)
hike (1.2.1)
i18n (0.6.0)
Expand Down Expand Up @@ -78,6 +79,19 @@ GEM
rake (0.9.2.2)
rdoc (3.11)
json (~> 1.4)
rspec (2.7.0)
rspec-core (~> 2.7.0)
rspec-expectations (~> 2.7.0)
rspec-mocks (~> 2.7.0)
rspec-core (2.7.1)
rspec-expectations (2.7.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.7.0)
rspec-rails (2.7.0)
actionpack (~> 3.0)
activesupport (~> 3.0)
railties (~> 3.0)
rspec (~> 2.7.0)
sprockets (2.0.3)
hike (~> 1.2)
rack (~> 1.0)
Expand All @@ -96,4 +110,5 @@ PLATFORMS
DEPENDENCIES
doorkeeper!
jquery-rails
rspec-rails
sqlite3
1 change: 1 addition & 0 deletions doorkeeper.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ Gem::Specification.new do |s|
# s.add_dependency "jquery-rails"

s.add_development_dependency "sqlite3"
s.add_development_dependency "rspec-rails"
end
4 changes: 4 additions & 0 deletions lib/doorkeeper/engine.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
module Doorkeeper
class Engine < Rails::Engine
isolate_namespace Doorkeeper

config.generators do |g|
g.test_framework :rspec, :view_specs => false
end
end
end
17 changes: 17 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../dummy/config/environment", __FILE__)

require 'rspec/rails'
require 'rspec/autorun'

ENGINE_RAILS_ROOT = File.join(File.dirname(__FILE__), '../')

Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each { |f| require f }

RSpec.configure do |config|
config.mock_with :rspec

config.use_transactional_fixtures = true

config.infer_base_class_for_anonymous_controllers = false
end

0 comments on commit 38c6b5e

Please sign in to comment.