Sha256: 5b7ebe867ae3bf3cc956a8f4c27d2c809188fc7517619e074d6e72ed35275f8f

Contents?: true

Size: 1.64 KB

Versions: 28

Compression:

Stored size: 1.64 KB

Contents

# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../dummy/config/environment", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
require 'factory_girl_rails'
require 'capybara/rails'
require 'active_support/core_ext/numeric/bytes'

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}

RSpec.configure do |config|

  # If true, the base class of anonymous controllers will be inferred
  # automatically. This will be the default behavior in future versions of
  # rspec-rails.
  config.infer_base_class_for_anonymous_controllers = false

  # Run specs in random order to surface order dependencies. If you find an
  # order dependency and want to debug it, you can fix the order by providing
  # the seed, which is printed after each run.
  #     --seed 1234
  config.order = "random"

  config.mock_with :rspec

  config.before(:each) do
    # delete from all graphs.
    Tripod::SparqlClient::Update.update('
      # delete from default graph:
      DELETE {?s ?p ?o} WHERE {?s ?p ?o};
      # delete from named graphs:
      DELETE {graph ?g {?s ?p ?o}} WHERE {graph ?g {?s ?p ?o}};
    ')
  end

  config.before(:each, :type => :controller) do
    @request.host = 'pmdtest.dev'
  end

end

Capybara.configure do |config|
  config.default_host = 'http://pmdtest.dev'
end

# set up tripod for dev mode.
Tripod.configure do |config|
  config.update_endpoint = 'http://localhost:3030/pmdtest/update'
  config.query_endpoint = 'http://localhost:3030/pmdtest/sparql'
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
publish_my_data-0.0.29 spec/spec_helper.rb
publish_my_data-0.0.28 spec/spec_helper.rb
publish_my_data-0.0.27 spec/spec_helper.rb
publish_my_data-0.0.26 spec/spec_helper.rb
publish_my_data-0.0.25 spec/spec_helper.rb
publish_my_data-0.0.24 spec/spec_helper.rb
publish_my_data-0.0.23 spec/spec_helper.rb
publish_my_data-0.0.22 spec/spec_helper.rb
publish_my_data-0.0.21 spec/spec_helper.rb
publish_my_data-0.0.20 spec/spec_helper.rb
publish_my_data-0.0.19 spec/spec_helper.rb
publish_my_data-0.0.18 spec/spec_helper.rb
publish_my_data-0.0.17 spec/spec_helper.rb
publish_my_data-0.0.16 spec/spec_helper.rb
publish_my_data-0.0.15 spec/spec_helper.rb
publish_my_data-0.0.14 spec/spec_helper.rb
publish_my_data-0.0.13 spec/spec_helper.rb
publish_my_data-0.0.12 spec/spec_helper.rb
publish_my_data-0.0.11 spec/spec_helper.rb
publish_my_data-0.0.10 spec/spec_helper.rb