Permalink
Browse files

remove jquery, add rspec

  • Loading branch information...
1 parent b90293c commit 9c26c259b97274a02b37e8196c4483981ecb6566 @cv cv committed Feb 24, 2013
Showing with 55 additions and 5 deletions.
  1. +1 −0 .rspec
  2. +3 −1 Gemfile
  3. +13 −4 Gemfile.lock
  4. +38 −0 spec/spec_helper.rb
View
@@ -0,0 +1 @@
+--color
View
@@ -27,4 +27,6 @@ group :assets do
gem 'libv8'
end
-gem 'jquery-rails'
+group :test, :development do
+ gem 'rspec-rails'
+end
View
@@ -49,15 +49,13 @@ GEM
execjs
coffee-script-source (1.4.0)
debug_inspector (0.0.2)
+ diff-lcs (1.2.1)
erubis (2.7.0)
execjs (1.4.0)
multi_json (~> 1.0)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
- jquery-rails (2.2.1)
- railties (>= 3.0, < 5.0)
- thor (>= 0.14, < 2.0)
json (1.7.7)
koala (0.10.0)
json (>= 1.0)
@@ -99,6 +97,17 @@ GEM
rdiscount (2.0.7)
rdoc (3.12.1)
json (~> 1.4)
+ rspec-core (2.13.0)
+ rspec-expectations (2.13.0)
+ diff-lcs (>= 1.1.3, < 2.0)
+ rspec-mocks (2.13.0)
+ rspec-rails (2.13.0)
+ actionpack (>= 3.0)
+ activesupport (>= 3.0)
+ railties (>= 3.0)
+ rspec-core (~> 2.13.0)
+ rspec-expectations (~> 2.13.0)
+ rspec-mocks (~> 2.13.0)
sass (3.2.5)
sass-rails (3.2.6)
railties (~> 3.2.0)
@@ -134,14 +143,14 @@ DEPENDENCIES
binding_of_caller
bluecloth
coffee-rails (~> 3.2.1)
- jquery-rails
koala
koala-rails
libv8
pg
rack-cache (= 1.2.0)
rails
rdiscount
+ rspec-rails
sass-rails (~> 3.2.3)
slim
therubyracer
View
@@ -0,0 +1,38 @@
+# This file is copied to spec/ when you run 'rails generate rspec:install'
+ENV["RAILS_ENV"] ||= 'test'
+require File.expand_path("../../config/environment", __FILE__)
+require 'rspec/rails'
+require 'rspec/autorun'
+
+# Requires supporting ruby files with custom matchers and macros, etc,
+# in spec/support/ and its subdirectories.
+Dir[Rails.root.join("spec/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
+
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
+
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
+ # examples within a transaction, remove the following line or assign false
+ # instead of true.
+ config.use_transactional_fixtures = true
+
+ # If true, the base class of anonymous controllers will be inferred
+ # automatically. This will be the default behavior in future versions of
+ # rspec-rails.
+ config.infer_base_class_for_anonymous_controllers = false
+
+ # Run specs in random order to surface order dependencies. If you find an
+ # order dependency and want to debug it, you can fix the order by providing
+ # the seed, which is printed after each run.
+ # --seed 1234
+ config.order = "random"
+end

0 comments on commit 9c26c25

Please sign in to comment.