Skip to content

Commit

Permalink
Enable running tests without dep_selector
Browse files Browse the repository at this point in the history
This ensures we don't accidentally load dep_selector where we don't mean
to.
  • Loading branch information
danielsdeleo committed May 22, 2015
1 parent 31a30ac commit 6181b7c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,6 +4,7 @@
.config
.yardoc
Gemfile.lock
NoGecode.gemfile.lock
InstalledFiles
_yardoc
coverage
Expand Down
12 changes: 4 additions & 8 deletions Gemfile
Expand Up @@ -6,7 +6,10 @@ group :gecode do
gem "dep_selector", "~> 1.0"
end

group :development do
# If this group is named "development", then `bundle install --without
# development` automagically excludes development dependencies that are listed
# in the gemspec, which will skip installing rspec and then we can't run tests.
group :dev do
gem 'fuubar'
gem 'yard'
gem 'redcarpet'
Expand All @@ -28,10 +31,3 @@ group :development do
end
end

group :test do
gem 'thor', '>= 0.16.0'
gem 'rake', '>= 0.9.2.2'

gem 'spork'
gem 'rspec'
end
4 changes: 4 additions & 0 deletions NoGecode.gemfile
@@ -0,0 +1,4 @@
source 'https://rubygems.org'

gemspec

5 changes: 5 additions & 0 deletions Thorfile
Expand Up @@ -28,4 +28,9 @@ class Default < Thor
def spec
exec "rspec --color --format=documentation spec"
end

desc "spec", "Run RSpec code examples"
def nogecode_spec
exec "rspec -t '~gecode' --color --format=documentation spec"
end
end
2 changes: 1 addition & 1 deletion spec/acceptance/solutions_spec.rb
@@ -1,6 +1,6 @@
require 'spec_helper'

describe "Solutions" do
describe "Solutions", :gecode do

before do
Solve.engine = :gecode
Expand Down

0 comments on commit 6181b7c

Please sign in to comment.