Sha256: 6c1ca9e619f422793255dade8f8c7bcf249bf00bc48ad1d4e8343e007cc0cd52

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 Bytes

Contents

ENV['RAILS_ENV'] = 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
require 'capybara/rspec'

include Rails.application.routes.url_helpers

module JsModule

  DIR = File.expand_path(File.dirname(__FILE__))

  def attach_sample(sample, sleep_time = 2)
    attach_file 'file', File.join(DIR, 'samples', "sample.#{sample}")
    sleep sleep_time
  end

end

RSpec.configure do |c|
  c.include JsModule, :js => true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_attachments-0.1.1 test/spec/spec_helper.rb