Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

another tiny step towards specs

  • Loading branch information...
commit 04bf048f3fd08c605dbbf87a52c110652e8594fd 1 parent b1439b0
@stiff authored
View
1  spec/spec_helper.rb
@@ -8,6 +8,7 @@
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
require 'model_stubbing'
+require 'rspec_on_rails_on_crack'
RSpec.configure do |config|
# == Mock Framework
View
11 ...s/rspec_on_rails_on_crack/lib/rspec_on_rails_on_crack/controller_example_group_methods.rb
@@ -1,8 +1,9 @@
-module RSpec::Core::DSL
- def describe_access_for(controller, &block)
- RspecOnRailsOnCrack::ControllerAccessProxy.new(self, controller).instance_eval(&block)
- end
-end
+# FIXME remove it or fix it
+# module RSpec::Core::DSL
+# def describe_access_for(controller, &block)
+# RspecOnRailsOnCrack::ControllerAccessProxy.new(self, controller).instance_eval(&block)
+# end
+# end
module RspecOnRailsOnCrack
class ControllerAccessProxy
View
31 ...lugins/rspec_on_rails_on_crack/lib/rspec_on_rails_on_crack/model_example_group_methods.rb
@@ -1,18 +1,19 @@
-module Spec::DSL::Main
- def describe_validations_for(model, attributes, &block)
- describe model, "(validations)", :type => :model do
- before :all do
- @attributes = attributes
- end
-
- before do
- @record = model.new
- end
-
- RspecOnRailsOnCrack::ValidationExampleProxy.new(self, model).instance_eval(&block)
- end
- end
-end
+# FIXME remove it, or fix it
+# module RSpec::DSL::Main
+# def describe_validations_for(model, attributes, &block)
+# describe model, "(validations)", :type => :model do
+# before :all do
+# @attributes = attributes
+# end
+#
+# before do
+# @record = model.new
+# end
+#
+# RspecOnRailsOnCrack::ValidationExampleProxy.new(self, model).instance_eval(&block)
+# end
+# end
+# end
module RspecOnRailsOnCrack
class ValidationExampleProxy
Please sign in to comment.
Something went wrong with that request. Please try again.