Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `description?' for nil:NilClass (NoMethodError) when converting. #93

Closed
fbernier opened this issue Oct 6, 2014 · 0 comments

Comments

@fbernier
Copy link

fbernier commented Oct 6, 2014

I have not taken the time to look at what might be causing this in the spec yet. :( It is happening after it's sucessfully converted a bunch of other specs. Here is the stacktrace:

/home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/syntax/oneliner_should.rb:114:in `insert_example_description!': undefined method `description?' for nil:NilClass (NoMethodError)
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/syntax/oneliner_should.rb:55:in `convert_have_items_to_standard_expect!'
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/converter.rb:57:in `process_oneliner_should'
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/syntax.rb:82:in `invoke_handler'
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/syntax.rb:66:in `dispatch_syntax'
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/syntax.rb:59:in `block in dispatch_node'
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/syntax.rb:57:in `each'
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/syntax.rb:57:in `find'
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/syntax.rb:57:in `dispatch_node'
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/converter.rb:38:in `block in process'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:237:in `block in visit_descendants'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:235:in `each'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:235:in `visit_descendants'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:238:in `block in visit_descendants'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:235:in `each'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:235:in `visit_descendants'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:238:in `block in visit_descendants'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:235:in `each'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:235:in `visit_descendants'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:238:in `block in visit_descendants'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:235:in `each'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:235:in `visit_descendants'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:238:in `block in visit_descendants'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:235:in `each'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:235:in `visit_descendants'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:238:in `block in visit_descendants'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:235:in `each'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:235:in `visit_descendants'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:238:in `block in visit_descendants'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:235:in `each'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:235:in `visit_descendants'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:238:in `block in visit_descendants'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:235:in `each'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:235:in `visit_descendants'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:238:in `block in visit_descendants'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:235:in `each'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:235:in `visit_descendants'
        from /home/francois/.gem/ruby/2.1.2/gems/astrolabe-1.3.0/lib/astrolabe/node.rb:224:in `each_node'
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/converter.rb:36:in `process'
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/base_rewriter.rb:33:in `rewrite'
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/base_rewriter.rb:16:in `rewrite_file!'
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/cli.rb:89:in `convert_spec'
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/cli.rb:61:in `block in process'
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/cli.rb:60:in `each'
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/cli.rb:60:in `process'
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/cli.rb:37:in `run'
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/lib/transpec/cli.rb:19:in `run'
        from /home/francois/.gem/ruby/2.1.2/gems/transpec-2.3.7/bin/transpec:7:in `<top (required)>'
        from /home/francois/.gem/ruby/2.1.2/bin/transpec:23:in `load'
        from /home/francois/.gem/ruby/2.1.2/bin/transpec:23:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant