Sha256: ee7a676b5e4daf8cc9f6d025176d8f4e824f8020077bcbe5b5a14f0f05fe48f2

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

require 'rubygems'

# Configure Rails Environment
ENV["RAILS_ENV"] ||= 'test'

require File.expand_path("../dummy/config/environment", __FILE__)

require 'rspec/rails'
require 'capybara/rspec'
require 'factory_girl_rails'

Rails.backtrace_cleaner.remove_silencers!

RSpec.configure do |config|
  config.mock_with :rspec
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.filter_run :focus => true
  config.run_all_when_everything_filtered = true
  config.expose_current_running_example_as :example
  config.infer_spec_type_from_file_location!
end

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories including factories.
([Rails.root.to_s] | ::Refinery::Plugins.registered.pathnames).map{|p|
  Dir[File.join(p, 'spec', 'support', '**', '*.rb').to_s]
}.flatten.sort.each do |support_file|
  require support_file
end

def settings_hash(twitter_account)
  { "username" => twitter_account.username,
    "tweet_count" => twitter_account.tweet_count,
    "visible" => twitter_account.visible,
    "widget_id" => twitter_account.widget_id
  }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-tweets-2.1.0 spec/spec_helper.rb