Skip to content

Commit

Permalink
Update spec/spec_helper.rb (formerly helper.rb) and set a default rak…
Browse files Browse the repository at this point in the history
…e task
  • Loading branch information
Nathan Sutton committed Mar 9, 2012
1 parent 0d1cfc2 commit 7213c40
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 18 deletions.
2 changes: 2 additions & 0 deletions Rakefile
Expand Up @@ -3,3 +3,5 @@ Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new

task :default => :spec
2 changes: 1 addition & 1 deletion spec/channel_spec.rb
@@ -1,4 +1,4 @@
require "helper"
require "spec_helper"

describe Agent::Channel do
# http://golang.org/doc/go_spec.html#Agent::Channel_types
Expand Down
2 changes: 1 addition & 1 deletion spec/examples/channel_of_channels_spec.rb
@@ -1,4 +1,4 @@
require "helper"
require "spec_helper"

describe "Channel of Channels" do

Expand Down
2 changes: 1 addition & 1 deletion spec/examples/producer_consumer_spec.rb
@@ -1,4 +1,4 @@
require "helper"
require "spec_helper"

describe "Producer-Consumer" do
it "should synchronize by communication" do
Expand Down
2 changes: 1 addition & 1 deletion spec/examples/sieve_spec.rb
@@ -1,4 +1,4 @@
require "helper"
require "spec_helper"

describe "sieve of Eratosthenes" do

Expand Down
12 changes: 0 additions & 12 deletions spec/helper.rb

This file was deleted.

2 changes: 1 addition & 1 deletion spec/queue_spec.rb
@@ -1,4 +1,4 @@
require 'helper'
require "spec_helper"
include Agent::Transport

describe Agent::Transport::Queue do
Expand Down
2 changes: 1 addition & 1 deletion spec/selector_spec.rb
@@ -1,4 +1,4 @@
require 'helper'
require "spec_helper"

describe Agent::Selector do
# A "select" statement chooses which of a set of possible communications will
Expand Down
19 changes: 19 additions & 0 deletions spec/spec_helper.rb
@@ -0,0 +1,19 @@
# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# Require this file using `require "spec_helper.rb"` to ensure that it is only
# loaded once.
#
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration

require "agent"
require "timeout"

RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
config.run_all_when_everything_filtered = true
config.filter_run :focus

config.filter_run_excluding :vm => lambda { |version|
!(Config::CONFIG['ruby_install_name'] =~ /^#{version.to_s}/)
}
end

0 comments on commit 7213c40

Please sign in to comment.