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