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

Bundler::GitError when running vagrant-spec #8

Open
sneal opened this issue Apr 18, 2014 · 0 comments
Open

Bundler::GitError when running vagrant-spec #8

sneal opened this issue Apr 18, 2014 · 0 comments

Comments

@sneal
Copy link

sneal commented Apr 18, 2014

Also tried bundle exec'ing the command after bundle installing, same error:

[~/src/vagrant]$ rake acceptance:run COMPONENTS="provider/virtualbox/basic"
vagrant-spec test --config=vagrant-spec.config.rb --components="provider/virtualbox/basic"

Skipping: cli/box
Skipping: cli/init
Skipping: cli/plugin
Skipping: cli/version
Skipping: provider/virtualbox/network/forwarded_port
Skipping: provider/virtualbox/network/private_network
Skipping: provider/virtualbox/package
Skipping: provider/virtualbox/synced_folder
Skipping: provider/virtualbox/provisioner/chef-solo
Skipping: provider/virtualbox/provisioner/puppet
Skipping: provider/virtualbox/provisioner/shell
Skipping: provider/virtualbox/synced_folder/nfs
Skipping: provider/virtualbox/synced_folder/rsync
Skipping: provider/virtualbox/network/intnet

provider/virtualbox/basic
  it should behave like provider/basic
    after an up
      can manage machine lifecycle
        Execute: vagrant box add box ~/Downloads/opscode_ubuntu-12.04_chef-11.12.2.box
        Execute: vagrant destroy --force

An error occurred in an after hook
  RSpec::Expectations::ExpectationNotMetError: expected command to exit with 0 but got exit code: 1

stdout: 

stderr: /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/source/git.rb:179:in `rescue in load_spec_files': https://github.com/mitchellh/vagrant-spec.git (at master) is not yet checked out. Run `bundle install` first. (Bundler::GitError)
    from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/source/git.rb:176:in `load_spec_files'
    from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/source/path.rb:86:in `local_specs'
    from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/source/git.rb:150:in `specs'
    from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/definition.rb:199:in `block in resolve'
    from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/definition.rb:197:in `each'
    from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/definition.rb:197:in `resolve'
    from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/definition.rb:133:in `specs'
    from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/definition.rb:178:in `specs_for'
    from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/definition.rb:167:in `requested_specs'
    from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/environment.rb:18:in `requested_specs'
    from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/runtime.rb:13:in `setup'
    from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler.rb:119:in `setup'
    from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/setup.rb:17:in `<top (required)>'
    from /opt/local/lib/ruby2.0/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /opt/local/lib/ruby2.0/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'

  occurred at /opt/local/lib/ruby2.0/gems/2.0.0/gems/rspec-expectations-2.14.5/lib/rspec/expectations/fail_with.rb:32:in `fail_with'

        can manage machine lifecycle (FAILED - 1)

Failures:

  1) provider/virtualbox/basic it should behave like provider/basic after an up can manage machine lifecycle
     Failure/Error: assert_execute("vagrant", "box", "add", "box", options[:box])
       expected command to exit with 0 but got exit code: 1

       stdout: 

       stderr: /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/source/git.rb:179:in `rescue in load_spec_files': https://github.com/mitchellh/vagrant-spec.git (at master) is not yet checked out. Run `bundle install` first. (Bundler::GitError)
        from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/source/git.rb:176:in `load_spec_files'
        from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/source/path.rb:86:in `local_specs'
        from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/source/git.rb:150:in `specs'
        from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/definition.rb:199:in `block in resolve'
        from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/definition.rb:197:in `each'
        from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/definition.rb:197:in `resolve'
        from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/definition.rb:133:in `specs'
        from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/definition.rb:178:in `specs_for'
        from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/definition.rb:167:in `requested_specs'
        from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/environment.rb:18:in `requested_specs'
        from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/runtime.rb:13:in `setup'
        from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler.rb:119:in `setup'
        from /opt/local/lib/ruby2.0/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/setup.rb:17:in `<top (required)>'
        from /opt/local/lib/ruby2.0/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /opt/local/lib/ruby2.0/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
     Shared Example Group: "provider/basic" called from /Users/sneal/.bundler/ruby/2.0.0/vagrant-spec-aae28ee57071/lib/vagrant-spec/acceptance/runner.rb:64
     # /Users/sneal/.bundler/ruby/2.0.0/vagrant-spec-aae28ee57071/lib/vagrant-spec/acceptance/rspec/context.rb:55:in `assert_execute'
     # /Users/sneal/.bundler/ruby/2.0.0/vagrant-spec-aae28ee57071/acceptance/provider/basic_spec.rb:12:in `block (2 levels) in <top (required)>'
     # /Users/sneal/.bundler/ruby/2.0.0/vagrant-spec-aae28ee57071/lib/vagrant-spec/acceptance/runner.rb:43:in `block in run'
     # /Users/sneal/.bundler/ruby/2.0.0/vagrant-spec-aae28ee57071/lib/vagrant-spec/acceptance/runner.rb:76:in `with_world'
     # /Users/sneal/.bundler/ruby/2.0.0/vagrant-spec-aae28ee57071/lib/vagrant-spec/acceptance/runner.rb:28:in `run'
     # /Users/sneal/.bundler/ruby/2.0.0/vagrant-spec-aae28ee57071/lib/vagrant-spec/cli.rb:34:in `test'

Finished in 0.62649 seconds
1 example, 1 failure

Failed examples:

rspec /Users/sneal/.bundler/ruby/2.0.0/vagrant-spec-aae28ee57071/acceptance/provider/basic_spec.rb:57 # provider/virtualbox/basic it should behave like provider/basic after an up can manage machine lifecycle
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