consul 0.12.2 → 0.12.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of consul might be problematic. Click here for more details.

Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/consul.gemspec +1 -1
  4. data/lib/consul/version.rb +1 -1
  5. metadata +2 -126
  6. data/spec/rails-2.3/Gemfile +0 -13
  7. data/spec/rails-2.3/Gemfile.lock +0 -65
  8. data/spec/rails-2.3/Rakefile +0 -11
  9. data/spec/rails-2.3/app_root/app +0 -1
  10. data/spec/rails-2.3/app_root/config/boot.rb +0 -128
  11. data/spec/rails-2.3/app_root/config/database.yml +0 -21
  12. data/spec/rails-2.3/app_root/config/environment.rb +0 -14
  13. data/spec/rails-2.3/app_root/config/environments/in_memory.rb +0 -0
  14. data/spec/rails-2.3/app_root/config/environments/mysql.rb +0 -0
  15. data/spec/rails-2.3/app_root/config/environments/postgresql.rb +0 -0
  16. data/spec/rails-2.3/app_root/config/environments/sqlite.rb +0 -0
  17. data/spec/rails-2.3/app_root/config/environments/sqlite3.rb +0 -0
  18. data/spec/rails-2.3/app_root/config/initializers/fix_missing_source_file.rb +0 -1
  19. data/spec/rails-2.3/app_root/config/preinitializer.rb +0 -20
  20. data/spec/rails-2.3/app_root/config/routes.rb +0 -21
  21. data/spec/rails-2.3/app_root/db +0 -1
  22. data/spec/rails-2.3/app_root/log/.gitignore +0 -1
  23. data/spec/rails-2.3/rcov.opts +0 -2
  24. data/spec/rails-2.3/spec.opts +0 -4
  25. data/spec/rails-2.3/spec/spec_helper.rb +0 -36
  26. data/spec/rails-3.0/.rspec +0 -2
  27. data/spec/rails-3.0/Gemfile +0 -11
  28. data/spec/rails-3.0/Gemfile.lock +0 -126
  29. data/spec/rails-3.0/Rakefile +0 -11
  30. data/spec/rails-3.0/app_root/.gitignore +0 -4
  31. data/spec/rails-3.0/app_root/app +0 -1
  32. data/spec/rails-3.0/app_root/config/application.rb +0 -31
  33. data/spec/rails-3.0/app_root/config/boot.rb +0 -13
  34. data/spec/rails-3.0/app_root/config/database.yml +0 -4
  35. data/spec/rails-3.0/app_root/config/environment.rb +0 -5
  36. data/spec/rails-3.0/app_root/config/environments/test.rb +0 -35
  37. data/spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb +0 -7
  38. data/spec/rails-3.0/app_root/config/initializers/inflections.rb +0 -10
  39. data/spec/rails-3.0/app_root/config/initializers/mime_types.rb +0 -5
  40. data/spec/rails-3.0/app_root/config/initializers/secret_token.rb +0 -7
  41. data/spec/rails-3.0/app_root/config/initializers/session_store.rb +0 -8
  42. data/spec/rails-3.0/app_root/config/routes.rb +0 -3
  43. data/spec/rails-3.0/app_root/db +0 -1
  44. data/spec/rails-3.0/app_root/lib/tasks/.gitkeep +0 -0
  45. data/spec/rails-3.0/app_root/log/.gitkeep +0 -0
  46. data/spec/rails-3.0/app_root/script/rails +0 -6
  47. data/spec/rails-3.0/rcov.opts +0 -2
  48. data/spec/rails-3.0/spec/spec_helper.rb +0 -23
  49. data/spec/rails-3.2/.rspec +0 -2
  50. data/spec/rails-3.2/Gemfile +0 -11
  51. data/spec/rails-3.2/Gemfile.lock +0 -135
  52. data/spec/rails-3.2/Rakefile +0 -11
  53. data/spec/rails-3.2/app_root/.gitignore +0 -4
  54. data/spec/rails-3.2/app_root/app +0 -1
  55. data/spec/rails-3.2/app_root/config/application.rb +0 -31
  56. data/spec/rails-3.2/app_root/config/boot.rb +0 -13
  57. data/spec/rails-3.2/app_root/config/database.yml +0 -4
  58. data/spec/rails-3.2/app_root/config/environment.rb +0 -5
  59. data/spec/rails-3.2/app_root/config/environments/test.rb +0 -35
  60. data/spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb +0 -7
  61. data/spec/rails-3.2/app_root/config/initializers/inflections.rb +0 -10
  62. data/spec/rails-3.2/app_root/config/initializers/mime_types.rb +0 -5
  63. data/spec/rails-3.2/app_root/config/initializers/secret_token.rb +0 -7
  64. data/spec/rails-3.2/app_root/config/initializers/session_store.rb +0 -8
  65. data/spec/rails-3.2/app_root/config/routes.rb +0 -3
  66. data/spec/rails-3.2/app_root/db +0 -1
  67. data/spec/rails-3.2/app_root/log/.gitignore +0 -1
  68. data/spec/rails-3.2/rcov.opts +0 -2
  69. data/spec/rails-3.2/spec/spec_helper.rb +0 -27
  70. data/spec/rails-4.1/.rspec +0 -2
  71. data/spec/rails-4.1/Gemfile +0 -12
  72. data/spec/rails-4.1/Gemfile.lock +0 -134
  73. data/spec/rails-4.1/Rakefile +0 -12
  74. data/spec/rails-4.1/app_root/.gitignore +0 -16
  75. data/spec/rails-4.1/app_root/app +0 -1
  76. data/spec/rails-4.1/app_root/bin/bundle +0 -3
  77. data/spec/rails-4.1/app_root/bin/rails +0 -8
  78. data/spec/rails-4.1/app_root/bin/rake +0 -8
  79. data/spec/rails-4.1/app_root/bin/spring +0 -18
  80. data/spec/rails-4.1/app_root/config/application.rb +0 -28
  81. data/spec/rails-4.1/app_root/config/boot.rb +0 -4
  82. data/spec/rails-4.1/app_root/config/database.yml +0 -4
  83. data/spec/rails-4.1/app_root/config/environment.rb +0 -5
  84. data/spec/rails-4.1/app_root/config/environments/development.rb +0 -37
  85. data/spec/rails-4.1/app_root/config/environments/production.rb +0 -83
  86. data/spec/rails-4.1/app_root/config/environments/test.rb +0 -39
  87. data/spec/rails-4.1/app_root/config/initializers/backtrace_silencers.rb +0 -7
  88. data/spec/rails-4.1/app_root/config/initializers/cookies_serializer.rb +0 -3
  89. data/spec/rails-4.1/app_root/config/initializers/filter_parameter_logging.rb +0 -4
  90. data/spec/rails-4.1/app_root/config/initializers/inflections.rb +0 -16
  91. data/spec/rails-4.1/app_root/config/initializers/mime_types.rb +0 -4
  92. data/spec/rails-4.1/app_root/config/initializers/session_store.rb +0 -3
  93. data/spec/rails-4.1/app_root/config/initializers/wrap_parameters.rb +0 -14
  94. data/spec/rails-4.1/app_root/config/locales/en.yml +0 -23
  95. data/spec/rails-4.1/app_root/config/routes.rb +0 -3
  96. data/spec/rails-4.1/app_root/config/secrets.yml +0 -22
  97. data/spec/rails-4.1/app_root/db +0 -1
  98. data/spec/rails-4.1/log/test.log +0 -0
  99. data/spec/rails-4.1/rcov.opts +0 -2
  100. data/spec/rails-4.1/spec/spec_helper.rb +0 -30
  101. data/spec/shared/app_root/app/controllers/application_controller.rb +0 -16
  102. data/spec/shared/app_root/app/controllers/cakes_controller.rb +0 -55
  103. data/spec/shared/app_root/app/controllers/client_notes_controller.rb +0 -13
  104. data/spec/shared/app_root/app/controllers/colors_controller.rb +0 -10
  105. data/spec/shared/app_root/app/controllers/dashboards_controller.rb +0 -20
  106. data/spec/shared/app_root/app/controllers/risks_controller.rb +0 -7
  107. data/spec/shared/app_root/app/controllers/songs_controller.rb +0 -14
  108. data/spec/shared/app_root/app/controllers/users_controller.rb +0 -13
  109. data/spec/shared/app_root/app/models/client.rb +0 -9
  110. data/spec/shared/app_root/app/models/deal.rb +0 -3
  111. data/spec/shared/app_root/app/models/deal/item.rb +0 -3
  112. data/spec/shared/app_root/app/models/note.rb +0 -7
  113. data/spec/shared/app_root/app/models/power.rb +0 -133
  114. data/spec/shared/app_root/app/models/song.rb +0 -6
  115. data/spec/shared/app_root/app/models/user.rb +0 -8
  116. data/spec/shared/app_root/db/migrate/001_create_users.rb +0 -13
  117. data/spec/shared/app_root/db/migrate/002_create_clients.rb +0 -13
  118. data/spec/shared/app_root/db/migrate/003_create_notes.rb +0 -13
  119. data/spec/shared/app_root/db/migrate/004_create_songs.rb +0 -14
  120. data/spec/shared/consul/active_record_spec.rb +0 -37
  121. data/spec/shared/consul/controllers/cakes_controller_spec.rb +0 -61
  122. data/spec/shared/consul/controllers/client_notes_controller_spec.rb +0 -25
  123. data/spec/shared/consul/controllers/colors_controller_spec.rb +0 -29
  124. data/spec/shared/consul/controllers/dashboards_controller_spec.rb +0 -26
  125. data/spec/shared/consul/controllers/risks_controller_spec.rb +0 -9
  126. data/spec/shared/consul/controllers/songs_controller_spec.rb +0 -13
  127. data/spec/shared/consul/controllers/users_controller_spec.rb +0 -25
  128. data/spec/shared/consul/power_spec.rb +0 -688
  129. data/spec/shared/consul/util_spec.rb +0 -17
@@ -1 +0,0 @@
1
- MissingSourceFile::REGEXPS.push([/^cannot load such file -- (.+)$/i, 1])
@@ -1,20 +0,0 @@
1
- begin
2
- require "rubygems"
3
- require "bundler"
4
- rescue LoadError
5
- raise "Could not load the bundler gem. Install it with `gem install bundler`."
6
- end
7
-
8
- if Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.24")
9
- raise RuntimeError, "Your bundler version is too old for Rails 2.3." +
10
- "Run `gem install bundler` to upgrade."
11
- end
12
-
13
- begin
14
- # Set up load paths for all bundled gems
15
- ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", __FILE__)
16
- Bundler.setup
17
- rescue Bundler::GemNotFound
18
- raise RuntimeError, "Bundler couldn't find some gems." +
19
- "Did you run `bundle install`?"
20
- end
@@ -1,21 +0,0 @@
1
- ActionController::Routing::Routes.draw do |map|
2
-
3
- map.resource :dashboard, :member => { :error => :post }
4
-
5
- map.resources :songs
6
-
7
- map.resources :users
8
-
9
- map.resources :risks
10
-
11
- map.resources :cakes, :member => { :custom_action => :get }
12
-
13
- map.resources :colors
14
-
15
- map.resources :notes
16
-
17
- map.resources :clients do
18
- map.resources :notes
19
- end
20
-
21
- end
@@ -1 +0,0 @@
1
- ../../shared/app_root/db
@@ -1 +0,0 @@
1
- *.log
@@ -1,2 +0,0 @@
1
- --exclude "spec/*,gems/*"
2
- --rails
@@ -1,4 +0,0 @@
1
- --colour
2
- --format progress
3
- --loadby mtime
4
- --reverse
@@ -1,36 +0,0 @@
1
- $: << File.join(File.dirname(__FILE__), "/../../lib" )
2
-
3
- # Set the default environment to sqlite3's in_memory database
4
- ENV['RAILS_ENV'] = 'in_memory'
5
-
6
- FileUtils.rm(Dir.glob("db/*.db"), :force => true)
7
-
8
- # Load the Rails environment and testing framework
9
- require "#{File.dirname(__FILE__)}/../app_root/config/environment"
10
- require 'spec/rails'
11
-
12
- ### Load dependencies
13
- #require 'memoizer'
14
- #require 'shoulda-matchers'
15
- #require 'assignable_values'
16
- #
17
- ## Load the gem itself
18
- #require "#{File.dirname(__FILE__)}/../../lib/consul"
19
-
20
- require 'rspec_candy/helpers'
21
-
22
- # Undo changes to RAILS_ENV
23
- silence_warnings {RAILS_ENV = ENV['RAILS_ENV']}
24
-
25
- # Requires supporting files with custom matchers and macros, etc in ./support/ and its subdirectories.
26
- Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f}
27
-
28
- # Run the migrations
29
- print "\033[30m" # dark gray text
30
- ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
31
- print "\033[0m"
32
-
33
- Spec::Runner.configure do |config|
34
- config.use_transactional_fixtures = true
35
- config.use_instantiated_fixtures = false
36
- end
@@ -1,2 +0,0 @@
1
- --colour
2
- --format progress
@@ -1,11 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'assignable_values'
4
- gem 'rails', '~>3.0.17'
5
- gem 'rspec'
6
- gem 'rspec-rails'
7
- gem 'shoulda-matchers', '<2'
8
- gem 'sqlite3'
9
- gem 'rspec_candy'
10
-
11
- gem 'consul', :path => '../..'
@@ -1,126 +0,0 @@
1
- PATH
2
- remote: ../..
3
- specs:
4
- consul (0.12.1)
5
- edge_rider (>= 0.3.0)
6
- memoizer
7
- rails
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- abstract (1.0.0)
13
- actionmailer (3.0.20)
14
- actionpack (= 3.0.20)
15
- mail (~> 2.2.19)
16
- actionpack (3.0.20)
17
- activemodel (= 3.0.20)
18
- activesupport (= 3.0.20)
19
- builder (~> 2.1.2)
20
- erubis (~> 2.6.6)
21
- i18n (~> 0.5.0)
22
- rack (~> 1.2.5)
23
- rack-mount (~> 0.6.14)
24
- rack-test (~> 0.5.7)
25
- tzinfo (~> 0.3.23)
26
- activemodel (3.0.20)
27
- activesupport (= 3.0.20)
28
- builder (~> 2.1.2)
29
- i18n (~> 0.5.0)
30
- activerecord (3.0.20)
31
- activemodel (= 3.0.20)
32
- activesupport (= 3.0.20)
33
- arel (~> 2.0.10)
34
- tzinfo (~> 0.3.23)
35
- activeresource (3.0.20)
36
- activemodel (= 3.0.20)
37
- activesupport (= 3.0.20)
38
- activesupport (3.0.20)
39
- arel (2.0.10)
40
- assignable_values (0.7.1)
41
- activerecord
42
- bourne (1.4.0)
43
- mocha (~> 0.13.2)
44
- builder (2.1.2)
45
- diff-lcs (1.2.4)
46
- edge_rider (0.3.0)
47
- activerecord
48
- erubis (2.6.6)
49
- abstract (>= 1.0.0)
50
- i18n (0.5.0)
51
- json (1.8.0)
52
- mail (2.2.20)
53
- activesupport (>= 2.3.6)
54
- i18n (>= 0.4.0)
55
- mime-types (~> 1.16)
56
- treetop (~> 1.4.8)
57
- memoizer (1.0.1)
58
- metaclass (0.0.1)
59
- mime-types (1.23)
60
- mocha (0.13.3)
61
- metaclass (~> 0.0.1)
62
- polyglot (0.3.3)
63
- rack (1.2.8)
64
- rack-mount (0.6.14)
65
- rack (>= 1.0.0)
66
- rack-test (0.5.7)
67
- rack (>= 1.0)
68
- rails (3.0.20)
69
- actionmailer (= 3.0.20)
70
- actionpack (= 3.0.20)
71
- activerecord (= 3.0.20)
72
- activeresource (= 3.0.20)
73
- activesupport (= 3.0.20)
74
- bundler (~> 1.0)
75
- railties (= 3.0.20)
76
- railties (3.0.20)
77
- actionpack (= 3.0.20)
78
- activesupport (= 3.0.20)
79
- rake (>= 0.8.7)
80
- rdoc (~> 3.4)
81
- thor (~> 0.14.4)
82
- rake (10.0.4)
83
- rdoc (3.12.2)
84
- json (~> 1.4)
85
- rspec (2.13.0)
86
- rspec-core (~> 2.13.0)
87
- rspec-expectations (~> 2.13.0)
88
- rspec-mocks (~> 2.13.0)
89
- rspec-core (2.13.1)
90
- rspec-expectations (2.13.0)
91
- diff-lcs (>= 1.1.3, < 2.0)
92
- rspec-mocks (2.13.1)
93
- rspec-rails (2.13.1)
94
- actionpack (>= 3.0)
95
- activesupport (>= 3.0)
96
- railties (>= 3.0)
97
- rspec-core (~> 2.13.0)
98
- rspec-expectations (~> 2.13.0)
99
- rspec-mocks (~> 2.13.0)
100
- rspec_candy (0.2.9)
101
- rspec
102
- sneaky-save
103
- shoulda-matchers (1.5.6)
104
- activesupport (>= 3.0.0)
105
- bourne (~> 1.3)
106
- sneaky-save (0.0.2)
107
- activerecord (>= 2.3.2)
108
- sqlite3 (1.3.7)
109
- thor (0.14.6)
110
- treetop (1.4.12)
111
- polyglot
112
- polyglot (>= 0.3.1)
113
- tzinfo (0.3.37)
114
-
115
- PLATFORMS
116
- ruby
117
-
118
- DEPENDENCIES
119
- assignable_values
120
- consul!
121
- rails (~> 3.0.17)
122
- rspec
123
- rspec-rails
124
- rspec_candy
125
- shoulda-matchers (< 2)
126
- sqlite3
@@ -1,11 +0,0 @@
1
- require 'rake'
2
- require 'rspec/core/rake_task'
3
-
4
- desc 'Default: Run all specs for a specific rails version.'
5
- task :default => :spec
6
-
7
- desc "Run all specs for a specific rails version"
8
- RSpec::Core::RakeTask.new(:spec) do |t|
9
- t.pattern = defined?(SPEC) ? SPEC : ['**/*_spec.rb', '../shared/**/*_spec.rb']
10
- t.verbose = false
11
- end
@@ -1,4 +0,0 @@
1
- .bundle
2
- db/*.sqlite3
3
- log/*.log
4
- tmp/**/*
@@ -1 +0,0 @@
1
- ../../shared/app_root/app
@@ -1,31 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- # If you have a Gemfile, require the gems listed there, including any gems
6
- # you've limited to :test, :development, or :production.
7
- Bundler.require(:default, Rails.env) if defined?(Bundler)
8
-
9
- module SpecApp
10
- class Application < Rails::Application
11
- config.encoding = "utf-8"
12
-
13
- config.cache_classes = true
14
- config.whiny_nils = true
15
-
16
- config.consider_all_requests_local = true
17
- config.action_controller.perform_caching = false
18
-
19
- config.action_dispatch.show_exceptions = false
20
-
21
- config.action_controller.allow_forgery_protection = false
22
-
23
- config.action_mailer.delivery_method = :test
24
-
25
- config.active_support.deprecation = :stderr
26
-
27
- config.root = File.expand_path('../..', __FILE__)
28
-
29
- # railties.plugins << Rails::Plugin.new(File.expand_path('../../../../..', __FILE__))
30
- end
31
- end
@@ -1,13 +0,0 @@
1
- require 'rubygems'
2
-
3
- # Set up gems listed in the Gemfile.
4
- gemfile = File.expand_path('../../Gemfile', __FILE__)
5
- begin
6
- ENV['BUNDLE_GEMFILE'] = gemfile
7
- require 'bundler'
8
- Bundler.setup
9
- rescue Bundler::GemNotFound => e
10
- STDERR.puts e.message
11
- STDERR.puts "Try running `bundle install`."
12
- exit!
13
- end if File.exist?(gemfile)
@@ -1,4 +0,0 @@
1
- test:
2
- adapter: sqlite3
3
- database: db/consul_test.db
4
- verbosity: quiet
@@ -1,5 +0,0 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application
5
- SpecApp::Application.initialize!
@@ -1,35 +0,0 @@
1
- SpecApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Log error messages when you accidentally call methods on nil.
11
- config.whiny_nils = true
12
-
13
- # Show full error reports and disable caching
14
- config.consider_all_requests_local = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Raise exceptions instead of rendering exception templates
18
- config.action_dispatch.show_exceptions = false
19
-
20
- # Disable request forgery protection in test environment
21
- config.action_controller.allow_forgery_protection = false
22
-
23
- # Tell Action Mailer not to deliver emails to the real world.
24
- # The :test delivery method accumulates sent emails in the
25
- # ActionMailer::Base.deliveries array.
26
- config.action_mailer.delivery_method = :test
27
-
28
- # Use SQL instead of Active Record's schema dumper when creating the test database.
29
- # This is necessary if your schema can't be completely dumped by the schema dumper,
30
- # like if you have constraints or database-specific column types
31
- # config.active_record.schema_format = :sql
32
-
33
- # Print deprecation notices to the stderr
34
- config.active_support.deprecation = :stderr
35
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,10 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
6
- # inflect.plural /^(ox)$/i, '\1en'
7
- # inflect.singular /^(ox)en/i, '\1'
8
- # inflect.irregular 'person', 'people'
9
- # inflect.uncountable %w( fish sheep )
10
- # end
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- SpecApp::Application.config.secret_token = 'cb014a08a45243e7143f31e04774c342c1fba329fd594ae1a480d8283b1a851f425dc08044311fb4be6d000b6e6681de7c76d19148419a5ffa0a9f84556d3b33'
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- SpecApp::Application.config.session_store :cookie_store, :key => '_app_root_session'
4
-
5
- # Use the database for sessions instead of the cookie-based default,
6
- # which shouldn't be used to store highly confidential information
7
- # (create the session table with "rails generate session_migration")
8
- # HasDefaultSpecApp::Application.config.session_store :active_record_store
@@ -1,3 +0,0 @@
1
- SpecApp::Application.routes.draw do
2
- match ':controller(/:action(/:id(.:format)))'
3
- end
@@ -1 +0,0 @@
1
- ../../shared/app_root/db
File without changes
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby1.8
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'
@@ -1,2 +0,0 @@
1
- --exclude "spec/*,gems/*"
2
- --rails
@@ -1,23 +0,0 @@
1
- $: << File.join(File.dirname(__FILE__), "/../../lib" )
2
-
3
- # Set the default environment to sqlite3's in_memory database
4
- ENV['RAILS_ENV'] ||= 'test'
5
- ENV['RAILS_ROOT'] = 'app_root'
6
-
7
- FileUtils.rm(Dir.glob("app_root/db/*.db"), :force => true)
8
-
9
- # Load the Rails environment and testing framework
10
- require "#{File.dirname(__FILE__)}/../app_root/config/environment"
11
- require 'rspec/rails'
12
-
13
- require 'rspec_candy/helpers'
14
-
15
- # Run the migrations
16
- print "\033[30m" # dark gray text
17
- ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
18
- print "\033[0m"
19
-
20
- RSpec.configure do |config|
21
- config.use_transactional_fixtures = true
22
- config.use_instantiated_fixtures = false
23
- end