Sha256: de2bb751d4c4e136ee452cb8403215d83ef360305504ed1f2ef6847c4a549586

Contents?: true

Size: 847 Bytes

Versions: 17

Compression:

Stored size: 847 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

require 'capybara/rspec'

require 'beanstalkd_view'

require "rails_helper"

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[File.dirname(__FILE__)+"/support/**/*.rb"].each  do |f|
  require f
end

#Capybara.default_driver = :selenium
  
RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.filter_run_excluding :requires_beanstalkd, :requires_two_beanstalkd

  config.before(:each) do      
      requires_two_beanstalkd = example.options[:requires_two_beanstalkd]
      if requires_two_beanstalkd
        ENV['BEANSTALK_URL'] = 'beanstalk://localhost:11300,beanstalk://localhost:11400'
      else
        ENV['BEANSTALK_URL'] = 'beanstalk://localhost:11300'
      end
    end
end



Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
beanstalkd_view-1.2.12 spec/spec_helper.rb
beanstalkd_view-1.2.11 spec/spec_helper.rb
beanstalkd_view-1.2.10 spec/spec_helper.rb
beanstalkd_view-1.2.9 spec/spec_helper.rb
beanstalkd_view-1.2.8 spec/spec_helper.rb
beanstalkd_view-1.2.7 spec/spec_helper.rb
beanstalkd_view-1.2.6 spec/spec_helper.rb
beanstalkd_view-1.2.5 spec/spec_helper.rb
beanstalkd_view-1.2.4 spec/spec_helper.rb
beanstalkd_view-1.2.3 spec/spec_helper.rb
beanstalkd_view-1.2.2 spec/spec_helper.rb
beanstalkd_view-1.2.1 spec/spec_helper.rb
beanstalkd_view-1.2.0 spec/spec_helper.rb
beanstalkd_view-1.1.3 spec/spec_helper.rb
beanstalkd_view-1.1.2 spec/spec_helper.rb
beanstalkd_view-1.1.1 spec/spec_helper.rb
beanstalkd_view-1.1.0 spec/spec_helper.rb