Skip to content

Commit

Permalink
Rspec fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pjotrp committed Jun 15, 2014
1 parent fb53edf commit 846165f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -8,7 +8,7 @@ gem "bio-logger"
# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
gem "rspec"
gem "rspec-expectations", ">= 2.9"
gem "cucumber"
gem "bundler"
gem "jeweler", "~> 2.0.0"
Expand Down
20 changes: 10 additions & 10 deletions Rakefile
Expand Up @@ -25,16 +25,16 @@ Jeweler::Tasks.new do |gem|
end
Jeweler::RubygemsDotOrgTasks.new

require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = FileList['spec/**/*_spec.rb']
end

RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
end
# require 'rspec/core'
# require 'rspec/core/rake_task'
# RSpec::Core::RakeTask.new(:spec) do |spec|
# spec.pattern = FileList['spec/**/*_spec.rb']
# end

# RSpec::Core::RakeTask.new(:rcov) do |spec|
# spec.pattern = 'spec/**/*_spec.rb'
# spec.rcov = true
# end

require 'cucumber/rake/task'
Cucumber::Rake::Task.new do |features|
Expand Down
2 changes: 1 addition & 1 deletion features/step_definitions/cli-feature.rb
Expand Up @@ -8,5 +8,5 @@
end

Then /^I expect the named output to match "(.*?)"$/ do |arg1|
RegressionTest::CliExec::exec(@cmd,arg1).should be_true
expect(RegressionTest::CliExec::exec(@cmd,arg1)).to be_true
end
1 change: 1 addition & 0 deletions features/support/env.rb
Expand Up @@ -15,6 +15,7 @@
require 'bio-table'

require 'rspec/expectations'
World(RSpec::Matchers)

log = Bio::Log::LoggerPlus.new 'bio-table'
log.level = Bio::Log::DEBUG

0 comments on commit 846165f

Please sign in to comment.