From e9361b44cf5a9ebabb8e91577944ee01e0a6e562 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Mon, 7 Feb 2011 22:35:25 +0900 Subject: [PATCH] r g steak:install --- spec/acceptance/acceptance_helper.rb | 5 +++++ spec/acceptance/support/helpers.rb | 5 +++++ spec/acceptance/support/paths.rb | 9 +++++++++ 3 files changed, 19 insertions(+) create mode 100644 spec/acceptance/acceptance_helper.rb create mode 100644 spec/acceptance/support/helpers.rb create mode 100644 spec/acceptance/support/paths.rb diff --git a/spec/acceptance/acceptance_helper.rb b/spec/acceptance/acceptance_helper.rb new file mode 100644 index 0000000..a59648f --- /dev/null +++ b/spec/acceptance/acceptance_helper.rb @@ -0,0 +1,5 @@ +require File.expand_path(File.dirname(__FILE__) + "/../spec_helper") +require "steak" + +# Put your acceptance spec helpers inside /spec/acceptance/support +Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} \ No newline at end of file diff --git a/spec/acceptance/support/helpers.rb b/spec/acceptance/support/helpers.rb new file mode 100644 index 0000000..5d1de53 --- /dev/null +++ b/spec/acceptance/support/helpers.rb @@ -0,0 +1,5 @@ +module HelperMethods + # Put helper methods you need to be available in all tests here. +end + +RSpec.configuration.include HelperMethods, :type => :acceptance diff --git a/spec/acceptance/support/paths.rb b/spec/acceptance/support/paths.rb new file mode 100644 index 0000000..f623f48 --- /dev/null +++ b/spec/acceptance/support/paths.rb @@ -0,0 +1,9 @@ +module NavigationHelpers + # Put helper methods related to the paths in your application here. + + def homepage + "/" + end +end + +RSpec.configuration.include NavigationHelpers, :type => :acceptance