Skip to content

Commit

Permalink
Merged in the autotest example to be the actual autotest file, added …
Browse files Browse the repository at this point in the history
…dependencies to Gemfile. These won't install in production unless you specify group :test as well. (ht: kotp - thanks Victor!)
  • Loading branch information
parndt committed Aug 23, 2010
1 parent 042a668 commit 4a2c08b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 23 deletions.
15 changes: 6 additions & 9 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,14 @@ gem 'dragonfly', :git => 'git://github.com/parndt/dragonfly.git',

# REFINERY CMS DEVELOPMENT ====================================================

group :test, :development do
group :test do
gem 'json_pure', '= 1.4.6', :require => 'json/pure'

gem 'rspec', (RSPEC_VERSION = '~> 2.0.0.beta.19')
gem 'rspec-core', RSPEC_VERSION, :require => 'rspec/core'
gem 'rspec-expectations', RSPEC_VERSION, :require => 'rspec/expectations'
gem 'rspec-mocks', RSPEC_VERSION, :require => 'rspec/mocks'
# gem 'rspec-rails', RSPEC_VERSION
gem 'rspec-rails', '>= 2.0.0.beta.19'
gem 'rspec-rails', RSPEC_VERSION
gem 'capybara'
gem 'database_cleaner'
gem 'cucumber-rails'
Expand All @@ -87,11 +86,9 @@ group :test, :development do
gem 'gherkin'
gem 'factory_girl'
gem 'ruby-prof'
gem 'autotest'
gem 'autotest-rails'
gem 'autotest-notification'
end

# END REFINERY CMS DEVELOPMENT =================================================

# Added by vhgiii
gem 'autotest-rails'
gem 'autotest'

# END REFINERY CMS DEVELOPMENT =================================================
9 changes: 9 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ PATH
GEM
remote: http://rubygems.org/
specs:
ZenTest (4.3.3)
abstract (1.0.0)
actionmailer (3.0.0.rc)
actionpack (= 3.0.0.rc)
Expand Down Expand Up @@ -84,6 +85,11 @@ GEM
activesupport (>= 3.0.0.beta)
authlogic (2.1.6)
activesupport
autotest (4.3.2)
autotest-notification (2.3.1)
autotest (~> 4.3)
autotest-rails (4.1.0)
ZenTest
babosa (0.1.1)
builder (2.1.2)
capybara (0.3.9)
Expand Down Expand Up @@ -187,6 +193,9 @@ PLATFORMS

DEPENDENCIES
acts_as_tree!
autotest
autotest-notification
autotest-rails
capybara
cucumber
cucumber-rails
Expand Down
14 changes: 0 additions & 14 deletions autotest.example

This file was deleted.

15 changes: 15 additions & 0 deletions autotest/autotest.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require "autotest/restart"
require "test_notifier/runner/autotest"
require "redgreen/autotest"
require "autotest/timestamp"

# adds exceptions from .gitignore file, please modify exceptions there!
imported_exceptions = IO.readlines('.gitignore').inject([]) do |acc, line|
acc << line.strip if line.to_s[0] != '#' && line.strip != ''; acc
end

Autotest.add_hook :initialize do |autotest|
imported_exceptions.each do |exception|
autotest.add_exception(exception)
end
end

0 comments on commit 4a2c08b

Please sign in to comment.