mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-20 17:20:12 +01:00
forgot to add these
This commit is contained in:
parent
86afd42148
commit
fde64e0b3d
145 changed files with 9044 additions and 0 deletions
26
backup.rails2.3/plugins/skinny_spec/lib/skinny_spec.rb
Normal file
26
backup.rails2.3/plugins/skinny_spec/lib/skinny_spec.rb
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Let's make sure everyone else is loaded
|
||||
require File.expand_path(RAILS_ROOT + "/config/environment")
|
||||
require 'spec'
|
||||
require 'spec/rails'
|
||||
begin
|
||||
require 'ruby2ruby'
|
||||
rescue LoadError
|
||||
puts "-----"
|
||||
puts "Attention: skinny_spec requires ruby2ruby for nicer route descriptions"
|
||||
puts "It is highly recommended that you install it: sudo gem install ruby2ruby"
|
||||
puts "-----"
|
||||
end
|
||||
|
||||
# Let's load our family now
|
||||
require "lucky_sneaks/common_spec_helpers"
|
||||
require "lucky_sneaks/controller_request_helpers"
|
||||
require "lucky_sneaks/controller_spec_helpers"
|
||||
require "lucky_sneaks/controller_stub_helpers"
|
||||
require "lucky_sneaks/model_spec_helpers"
|
||||
require "lucky_sneaks/view_spec_helpers"
|
||||
|
||||
# Let's all come together
|
||||
Spec::Rails::Example::ViewExampleGroup.send :include, LuckySneaks::ViewSpecHelpers
|
||||
Spec::Rails::Example::HelperExampleGroup.send :include, LuckySneaks::CommonSpecHelpers
|
||||
Spec::Rails::Example::ControllerExampleGroup.send :include, LuckySneaks::ControllerSpecHelpers
|
||||
Spec::Rails::Example::ModelExampleGroup.send :include, LuckySneaks::ModelSpecHelpers
|
||||
Loading…
Add table
Add a link
Reference in a new issue