≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #2111

Bug #2111: Broken test suite

Kind bug
Product Command-T
When Created 2013-09-23T14:37:01Z, updated 2013-12-19T13:18:45Z
Status closed
Reporter Vit Ondruch
Tags no tags

Description

Hi,

It seems that test suite is broken.

It fails with messages like:

$ rspec spec

... snip

 1) CommandT::Controller accept selection opens relative paths inside the working directory
    Failure/Error: finder = CommandT::FileFinder.new
    NoMethodError:
      undefined method `evaluate' for VIM:Module
    # ./ruby/command-t/vim.rb:34:in `exists?'
    # ./ruby/command-t/vim.rb:46:in `wild_ignore'
    # ./ruby/command-t/scanner/file_scanner.rb:42:in `initialize'
    # ./ruby/command-t/finder/file_finder.rb:31:in `new'
    # ./ruby/command-t/finder/file_finder.rb:31:in `initialize'
    # ./spec/command-t/controller_spec.rb:70:in `new'
    # ./spec/command-t/controller_spec.rb:70:in `stub_finder'
    # ./spec/command-t/controller_spec.rb:35:in `block (3 levels) in <top (required)>'

I am going to comment out in Fedora's package to execute the test suite, but this is hardly optimal fix.

May be I should run the test suite inside VIM somehow? That would definitely help. I tried something like:

$ vim dummy '+:ruby require "rspec"' '+:ruby $LOAD_PATH.unshift "/builddir/build/BUILD/vim-command-t-1.5/spec/"' '+:ruby RSpec::Core::Runner.run(["/builddir/build/BUILD/vim-command-t-1.5/spec/"])' '+:q!'

but it fails with 'NoMethodError: private method puts' called for #<Object:0x00000001fac278>" error :/

Comments

  1. Greg Hurrell 2013-09-23T20:35:15Z

    Thanks for catching this. I'll fix this evening.

  2. Greg Hurrell 2013-09-24T02:17:44Z

    Should be fixed.

  3. Greg Hurrell 2013-09-24T02:17:52Z

    Status changed:

    • From: new
    • To: closed
  4. Vit Ondruch 2013-12-19T13:18:45Z

    Thanks. I am testing 1.6 now and the test suite passes.

Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets