Added Rspec and Webrat plugins and started porting Selenium on Rails tests to Rspec Plain Text Stories driving Webrat driving Selenium.

This commit is contained in:
Luke Melia 2008-06-18 02:57:57 -04:00
parent 0600756bbf
commit 0f7d6f7a1d
602 changed files with 47788 additions and 29 deletions

View file

@ -0,0 +1,34 @@
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)
concat(arg, block.binding) + block.call
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
end

View file

@ -0,0 +1,5 @@
module MoreExplicitHelper
def method_in_more_explicit_helper
"<div>This is text from a method in the MoreExplicitHelper</div>"
end
end

View file

@ -0,0 +1,6 @@
# 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

View file

@ -0,0 +1,13 @@
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