public
Description: Custom controller spec macros, with an included 'custom_scaffold' generator.
Homepage:
Clone URL: git://github.com/technoweenie/rspec_on_rails_on_crack.git
Justin Wiley (author)
Fri Jan 23 18:41:04 -0800 2009
technoweenie (committer)
Sat Jan 24 18:29:50 -0800 2009
rspec_on_rails_on_crack / lib / rspec_on_rails_on_crack.rb
100644 16 lines (13 sloc) 0.5 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
%w(controller_example_group_methods model_example_group_methods).each { |lib| require "rspec_on_rails_on_crack/#{lib}" }
 
begin
  require 'ruby2ruby'
rescue LoadError
  # no pretty example descriptions for you
end
 
class ActionController::TestSession
  def include?(key)
    data.include?(key)
  end
end
 
Spec::Rails::Example::ControllerExampleGroup.extend RspecOnRailsOnCrack::ControllerExampleGroupMethods
Spec::Rails::Example::ModelExampleGroup.extend RspecOnRailsOnCrack::ModelExampleGroupMethods