Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Formatting

  • Loading branch information...
commit 891018f3bd57b8382048310a8b86b464387e8296 1 parent bc84d55
Gabe Berke-Williams gabebw authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 spec/support/controller_builder.rb
8 spec/support/controller_builder.rb
View
@@ -1,6 +1,6 @@
module ControllerBuilder
- TMP_VIEW_PATH =
- File.expand_path(File.join(TESTAPP_ROOT, 'tmp', 'views')).freeze
+ TMP_VIEW_PATH = File.expand_path(File.join(TESTAPP_ROOT, 'tmp',
+ 'views')).freeze
def self.included(example_group)
example_group.class_eval do
@@ -36,10 +36,10 @@ def build_response(opts = {}, &block)
controller_class.view_paths = [TMP_VIEW_PATH]
define_routes do
- match 'examples', :to => "examples##{action}"
+ get "examples", :to => "examples##{action}"
end
- create_view("examples/#{action}.html.erb", "abc")
+ create_view("examples/#{action}.html.erb", "action")
create_view("examples/#{partial}.html.erb", "partial")
@controller = controller_class.new
Please sign in to comment.
Something went wrong with that request. Please try again.