Skip to content

Commit

Permalink
Upgrade ci_reporter and add new test utilities
Browse files Browse the repository at this point in the history
This also requires some small test changes for failures that were
really supposed to be errors.
  • Loading branch information
shepmaster committed Jun 30, 2014
1 parent c290bd6 commit b123535
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "bundler/gem_tasks"
require 'ci/reporter/internal'
include CI::Reporter::Internal
require 'ci/reporter/test_utils/rake'
include CI::Reporter::TestUtils::Rake

namespace :generate do
task :clean do
Expand Down
4 changes: 2 additions & 2 deletions acceptance/verification_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
end

it "should have one failure for missing steps" do
failures = @doc.root.elements.to_a("/testsuite/testcase[@name='Missing steps']/failure")
failures = @doc.root.elements.to_a("/testsuite/testcase[@name='Missing steps']/error")
failures.size.should == 1
failures.first.attributes["type"].should =~ /StepNotDefinedException/
end

it "should have one failure for the bad coder" do
failures = @doc.root.elements.to_a("/testsuite/testcase[@name='Bad coder']/failure")
failures = @doc.root.elements.to_a("/testsuite/testcase[@name='Bad coder']/error")
failures.size.should == 1
failures.first.attributes["type"].should == "RuntimeError"
end
Expand Down
3 changes: 2 additions & 1 deletion ci_reporter_spinach.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features|acceptance)/})
spec.require_paths = ["lib"]

spec.add_dependency "ci_reporter", "2.0.0.alpha1"
spec.add_dependency "ci_reporter", "2.0.0.alpha2"
spec.add_dependency "spinach", "~> 0.8.7"

spec.add_development_dependency "bundler", "~> 1.6"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 2.0"
spec.add_development_dependency "ci_reporter_test_utils"
end

0 comments on commit b123535

Please sign in to comment.