Sha256: 6097694b37b4fed76df28b8e062cc8e9f359ba4b6c2a441551ed3c4bdc77fb8b

Contents?: true

Size: 865 Bytes

Versions: 12

Compression:

Stored size: 865 Bytes

Contents

# Sets up the Rails environment for Cucumber
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + '/../../../../../config/environment')
 
require 'cucumber/rails/world'
require 'cucumber/formatter/unicode' # Comment out this line if you don't want Cucumber Unicode support
require 'webrat'
 
Webrat.configure do |config|
  config.mode = :rails
end

Before do
  ActiveRecord::Base.connection.tables.each do |table|
    begin
      table.classify.constantize.delete_all
    rescue StandardError => e
      # silent
    end
  end
  Radiant::Config.create!(:key => 'globalize.languages', :value => "ro") if Radiant::Config['globalize.languages'].blank?
end

require 'cucumber/rails/rspec'
require 'webrat/core/matchers'

gem 'thoughtbot-factory_girl', '>= 1.2.1'
require 'factory_girl'

require File.dirname(__FILE__) + "/../../spec/factories.rb"

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
radiant-globalize2-extension-0.3.2 features/support/env.rb
radiant-globalize2-extension-0.3.1 features/support/env.rb
radiant-globalize2-extension-0.3.0 features/support/env.rb
radiant-globalize2-extension-0.2.8 features/support/env.rb
radiant-globalize2-extension-0.2.7 features/support/env.rb
radiant-globalize2-extension-0.2.6 features/support/env.rb
radiant-globalize2-extension-0.2.5 features/support/env.rb
radiant-globalize2-extension-0.2.4 features/support/env.rb
radiant-globalize2-extension-0.2.3 features/support/env.rb
radiant-globalize2-extension-0.2.2 features/support/env.rb
radiant-globalize2-extension-0.2.1 features/support/env.rb
radiant-globalize2-extension-0.2.0 features/support/env.rb