Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Ruby by ( 18 years ago )
enter_story.rb>>

require File.dirname(__FILE__) + "/helper"

with_steps_for(:enter) do

  run_local_story "enter_story"

end

helper>>

ENV["RAILS_ENV"] = "test"

require File.expand_path(File.dirname(__FILE__) + "/../config/environment")

require 'spec/rails/story_adapter'

require 'spec'

require 'spec/rails'

dir = File.dirname(__FILE__)

Dir[File.expand_path("#{dir}/steps/*.rb")].uniq.each do |file|

  require file

end





##

# Run a story file relative to the stories directory.


def run_local_story(filename, options={})

  run File.join(File.dirname(__FILE__), filename), options

end

 

Revise this Paste

Your Name: Code Language: