tracks/vendor/plugins/skinny_spec/lib/skinny_spec.rb
Simon Rozet 0376067cf4 Install the `skinny_spec' plugin.
It's basically a set of rspec macro allowing you to write thing such as
`it_should_find_and_assign :users'.
See <http://github.com/rsl/skinny_spec/tree/master> for more informations.
It's recommended to install the `ruby2ruby' gem to have nicer error messages, but
it is not required to work.

@@ update README_FOR_DEVELOPERS accordingly.
2008-06-23 10:03:56 +02:00

26 lines
No EOL
1 KiB
Ruby

# Let's make sure everyone else is loaded
require File.expand_path(File.dirname(__FILE__) + "/../../../../config/environment")
require 'spec'
require 'spec/rails'
begin
require 'ruby2ruby'
rescue
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