Skip to content

Instantly share code, notes, and snippets.

@vvs
Created March 9, 2010 21:53
Show Gist options
  • Save vvs/327168 to your computer and use it in GitHub Desktop.
Save vvs/327168 to your computer and use it in GitHub Desktop.
'Ant should have a valid location' FAILED
expected exist?("./spec/java_integration/ant/ant_spec.rb:36") to return true, got false
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/expectations/fail_with.rb:41:in `fail_with'
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/expectations/handler.rb:21:in `handle_matcher'
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/expectations/extensions/kernel.rb:27:in `should'
./spec/java_integration/ant/ant_spec.rb:37:
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/example/example_methods.rb:40:in `instance_eval'
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/example/example_methods.rb:40:in `execute'
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/example/example_methods.rb:37:in `execute'
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/example/example_group_methods.rb:214:in `run_examples'
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/example/example_group_methods.rb:212:in `each'
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/example/example_group_methods.rb:212:in `run_examples'
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/example/example_group_methods.rb:103:in `run'
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:23:in `run'
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:22:in `each'
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:22:in `run'
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/options.rb:152:in `run_examples'
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/command_line.rb:9:in `run'
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/bin/spec:5
diff --git a/spec/java_integration/ant/ant_spec.rb b/spec/java_integration/ant/ant_spec.rb
index d2d373e..361e6ff 100644
--- a/spec/java_integration/ant/ant_spec.rb
+++ b/spec/java_integration/ant/ant_spec.rb
@@ -33,6 +33,7 @@
end
it "should have a valid location" do
+ @ant = ant
File.should be_exist(@ant.location.file_name)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment