Skip to content

Commit

Permalink
Add autotest
Browse files Browse the repository at this point in the history
rspec-autotest v1 doesn't work with Rails 4. The fix was in
rspec/rspec-autotest#22, which is pulled in by
this particular ref.
  • Loading branch information
kristjan committed May 11, 2015
1 parent e6ac730 commit 91a54c0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--require spec_helper
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ gem 'ruby-stackoverflow'
# gem 'capistrano-rails', group: :development

group :development, :test do
# Autotest is wonderful
gem 'autotest-rails'

# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'

Expand All @@ -48,6 +51,7 @@ group :development, :test do

# Use RSpec for testing
gem 'rspec-rails', '~> 3.0'
gem 'rspec-autotest', git: 'https://github.com/rspec/rspec-autotest.git', ref: '41a6410'

# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
Expand Down
13 changes: 13 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
GIT
remote: https://github.com/rspec/rspec-autotest.git
revision: 41a64100339fa75baf16e87ccb4ffe24336bf5a0
ref: 41a6410
specs:
rspec-autotest (1.0.1)
rspec-core (>= 2.99.0.beta1, < 4.0.0)

GEM
remote: https://rubygems.org/
specs:
ZenTest (4.11.0)
actionmailer (4.2.1)
actionpack (= 4.2.1)
actionview (= 4.2.1)
Expand Down Expand Up @@ -37,6 +46,8 @@ GEM
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
arel (6.0.0)
autotest-rails (4.2.1)
ZenTest (~> 4.5)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
builder (3.2.2)
Expand Down Expand Up @@ -184,6 +195,7 @@ PLATFORMS
ruby

DEPENDENCIES
autotest-rails
byebug
coffee-rails (~> 4.1.0)
foreman
Expand All @@ -193,6 +205,7 @@ DEPENDENCIES
pg
puma
rails (= 4.2.1)
rspec-autotest!
rspec-rails (~> 3.0)
ruby-stackoverflow
sass-rails (~> 5.0)
Expand Down

0 comments on commit 91a54c0

Please sign in to comment.