adding rspec and auto test runs
This commit is contained in:
@@ -25,6 +25,9 @@ group :development, :test do
|
||||
gem 'rspec-rails'
|
||||
end
|
||||
|
||||
group :test do
|
||||
gem 'rspec'
|
||||
end
|
||||
|
||||
# Gems used only for assets and not required
|
||||
# in production environments by default.
|
||||
@@ -52,9 +55,13 @@ gem 'jquery-rails'
|
||||
|
||||
# Pow related gem
|
||||
gem 'powder'
|
||||
<<<<<<< HEAD
|
||||
|
||||
gem 'aruba'
|
||||
gem 'minitest', '~> 4.0', :require=> "minitest/autorun"
|
||||
=======
|
||||
#gem 'minitest'
|
||||
>>>>>>> adding rspec and auto test runs
|
||||
|
||||
# Deploy with Capistrano
|
||||
# gem 'capistrano'
|
||||
|
||||
@@ -170,6 +170,14 @@ GEM
|
||||
rspec-core (~> 2.14.0)
|
||||
rspec-expectations (~> 2.14.0)
|
||||
rspec-mocks (~> 2.14.0)
|
||||
rspec (2.14.0)
|
||||
rspec-core (~> 2.14.0)
|
||||
rspec-expectations (~> 2.14.0)
|
||||
rspec-mocks (~> 2.14.0)
|
||||
rspec-core (2.14.2)
|
||||
rspec-expectations (2.14.0)
|
||||
diff-lcs (>= 1.1.3, < 2.0)
|
||||
rspec-mocks (2.14.1)
|
||||
ruby2ruby (2.0.3)
|
||||
ruby_parser (~> 3.1)
|
||||
sexp_processor (~> 4.0)
|
||||
@@ -230,6 +238,7 @@ DEPENDENCIES
|
||||
rails (= 3.2.13)
|
||||
rb-fsevent
|
||||
rspec-rails
|
||||
rspec
|
||||
sass-rails (~> 3.2.3)
|
||||
sqlite3
|
||||
uglifier (>= 1.0.3)
|
||||
|
||||
@@ -20,3 +20,9 @@ guard 'livereload', host: "railsgoat.dev", port: '35727' do
|
||||
# Rails Assets Pipeline
|
||||
watch(%r{(app|vendor)(/assets/\w+/(.+\.(css|js|html))).*}) { |m| "/assets/#{m[3]}" }
|
||||
end
|
||||
|
||||
guard :shell do
|
||||
watch(%r{test/unit/.+\.rb}) { system("rake")}
|
||||
watch(%r{test/functional/.+\.rb}) { system("rake")}
|
||||
|
||||
end
|
||||
@@ -1,9 +1,5 @@
|
||||
require 'test_helper'
|
||||
|
||||
class UsersControllerTest < ActionController::TestCase
|
||||
test "should get new" do
|
||||
get :new
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
@@ -1,7 +1,2 @@
|
||||
require 'test_helper'
|
||||
|
||||
class BenefitsTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user