aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gems/rspec-rails-1.3.3/spec/resources/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gems/rspec-rails-1.3.3/spec/resources/helpers')
-rw-r--r--vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/addition_helper.rb5
-rw-r--r--vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/explicit_helper.rb46
-rw-r--r--vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/more_explicit_helper.rb5
-rw-r--r--vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/plugin_application_helper.rb6
-rw-r--r--vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/view_spec_helper.rb13
5 files changed, 0 insertions, 75 deletions
diff --git a/vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/addition_helper.rb b/vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/addition_helper.rb
deleted file mode 100644
index 14ad70c3e..000000000
--- a/vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/addition_helper.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-module AdditionHelper
- def plus(addend)
- @addend + addend
- end
-end
diff --git a/vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/explicit_helper.rb b/vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/explicit_helper.rb
deleted file mode 100644
index f75d1ddcb..000000000
--- a/vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/explicit_helper.rb
+++ /dev/null
@@ -1,46 +0,0 @@
-module ExplicitHelper
- def method_in_explicit_helper
- "<div>This is text from a method in the ExplicitHelper</div>"
- end
-
- # this is an example of a method spec'able with eval_erb in helper specs
- def prepend(arg, &block)
- begin # rails edge after 2.1.0 eliminated need for block.binding
- concat(arg) + block.call
- rescue
- concat(arg, block.binding) + block.call
- end
- end
-
- def named_url
- rspec_on_rails_specs_url
- end
-
- def named_path
- rspec_on_rails_specs_path
- end
-
- def params_foo
- params[:foo]
- end
-
- def session_foo
- session[:foo]
- end
-
- def request_thing
- request.thing
- end
-
- def flash_thing
- flash[:thing]
- end
-
- def method_using_output_buffer
- concat("the_text_from_concat")
- end
-
- def method_using_template
- update_page { |p| p["#some_id"].replace_html "" }
- end
-end
diff --git a/vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/more_explicit_helper.rb b/vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/more_explicit_helper.rb
deleted file mode 100644
index 7468741b2..000000000
--- a/vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/more_explicit_helper.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-module MoreExplicitHelper
- def method_in_more_explicit_helper
- "<div>This is text from a method in the MoreExplicitHelper</div>"
- end
-end
diff --git a/vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/plugin_application_helper.rb b/vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/plugin_application_helper.rb
deleted file mode 100644
index 2107d2218..000000000
--- a/vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/plugin_application_helper.rb
+++ /dev/null
@@ -1,6 +0,0 @@
-# Methods added to this helper will be available to all templates in the application.
-module ApplicationHelper
- def method_in_plugin_application_helper
- "<div>This is text from a method in the ApplicationHelper</div>"
- end
-end
diff --git a/vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/view_spec_helper.rb b/vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/view_spec_helper.rb
deleted file mode 100644
index b05fc53f7..000000000
--- a/vendor/gems/rspec-rails-1.3.3/spec/resources/helpers/view_spec_helper.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-module ViewSpecHelper
- def method_in_helper
- "<div>This is text from a method in the ViewSpecHelper</div>"
- end
-
- def method_in_template_with_partial
- "<div>method_in_template_with_partial in ViewSpecHelper</div>"
- end
-
- def method_in_partial
- "<div>method_in_partial in ViewSpecHelper</div>"
- end
-end