Sha256: dd446964ed75a122c827926af90ab9637522d6b32efbddb0e325ca49d6e7db29

Contents?: true

Size: 719 Bytes

Versions: 22

Compression:

Stored size: 719 Bytes

Contents

#!/usr/bin/env ruby
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'spec/rails/story_adapter'
require 'spec/story'
require File.expand_path(File.dirname(__FILE__) + "/rest_auth_stories_helper.rb")

# Make visible for testing
ApplicationController.send(:public, :logged_in?, :current_user, :authorized?)

this_dir = File.dirname(__FILE__)
Dir[File.join(this_dir, "steps/*.rb")].each do |file|
  puts file.to_s
  require file
end

with_steps_for :ra_navigation, :ra_response, :ra_resource, :<%= file_name %> do
  story_files = Dir[File.join(this_dir, "<%= table_name %>", '*.story')]
  story_files.each do |file|
    run file, :type => RailsStory 
  end
end

Version data entries

22 entries across 22 versions & 6 rubygems

Version Path
caleb-restful-authentication-1.1.1 generators/authenticated/templates/stories/rest_auth_stories.rb
dwaite-restful-authentication-1.1.1 generators/authenticated/templates/stories/rest_auth_stories.rb
ggoodale-restful-authentication-1.1.1 generators/authenticated/templates/stories/rest_auth_stories.rb
jcnetdev-restful-authentication-1.0.20080704 generators/authenticated/templates/stories/rest_auth_stories.rb
simonmenke-mr_authentication-0.0.1 vendor/plugins/restful-authentication/generators/authenticated/templates/stories/rest_auth_stories.rb
tournament-3.0.3 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb
tournament-3.0.2 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb
tournament-3.0.1 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb
tournament-3.0.0 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb
tournament-2.2.0 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb
tournament-2.2.1 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb
tournament-2.1.0 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb
tournament-2.1.1 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb
tournament-2.1.2 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb
tournament-2.0.0 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb
tournament-2.4.0 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb
tournament-2.2.2 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb
tournament-2.3.0 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb
tournament-2.5.0 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb
tournament-2.5.2 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb