rubyworks/hashery — Issue #10: OpenCascade 1.9.2-p290 error only on Travis CI
Author: trans
Created: 2011-11-11 04:48:56+00:00
State: open

```
Using worker: ruby
worker.travis-ci.org:worker-5
$ git clone --depth=1000 --quiet git://github.com/rubyworks/hashery.git rubyworks/hashery
$ git checkout -qf bec2d88e0832a7dc10cc9f6092db4fb08beca4fc
$ rvm use 1.9.2
Using /home/vagrant/.rvm/gems/ruby-1.9.2-p290
$ export BUNDLE_GEMFILE=/home/vagrant/builds/rubyworks/hashery/Gemfile
$ export TESTCOMMAND="qed"
An error and failure occur on testing with Travis Ci with Ruby 1.9.2-p290. The odd thing is that the problem does not arise on my local machine. The test are green. So I am left wonder if it has something to do with Bundler, b/c I am not running the tests via Bundler locally (something is wrong with my Bundler install as it can't find seem to find any gems).

I am just going to let this go for now, perhaps someone else will come across it and be able to make sense of the problem.

Here is the Travis CI output:

```
$ bundle install
Fetching source index for http://rubygems.org/
Installing ansi (1.4.0)
Installing ae (1.8.1)
Installing blankslate (2.1.2.4)
Installing facets (2.9.2)
Installing pom (2.1.1)
Installing detroit (0.2.0)
Using hashery (1.5.0) from source at /home/vagrant/builds/rubyworks/hashery
Installing test (0.2.1)
Installing lemon (0.9.0)
Installing qed (2.6.3)
Using bundler (1.0.21)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
$ bundle exec $TESTCOMMAND
Started
..............................................
E.........
F...................................................................
Finished in 0.11215 seconds.
***** ERROR *****
undefined method `z' for nil:NilClass
/home/vagrant/builds/rubyworks/hashery/qed/06_opencascade.rdoc:14
12 h = { :x => { :y => { :z => 1 } } }
13 c = OpenCascade[h]
=> 14 assert c.x.y.z == 1
15
16 As soon as you access a node it automatically becomes an OpenCascade.
***** FAIL *****
(assertion) AE::Assertion
/home/vagrant/builds/rubyworks/hashery/qed/06_opencascade.rdoc:47
45
46 assert c.x == 8
=> 47 assert c.y == 9
48
49 Finally, you can call methods ending in a !-mark to access the
9 demos, 124 steps: 1 failures, 1 errors (66/67 assertions)
Done. Build script exited with: 1
```