Skip to content

Instantly share code, notes, and snippets.

@gnufied
Created August 6, 2013 17:44
Show Gist options
  • Save gnufied/6166737 to your computer and use it in GitHub Desktop.
Save gnufied/6166737 to your computer and use it in GitHub Desktop.
Failures:
1) bundle gem gem naming with underscore it should behave like git config is present git config user.{name,email} present sets gemspec author to gi
t user.name if available
Failure/Error: expect(generated_gem.gemspec.authors.first).to eq("Bundler User")
expected: "Bundler User"
got: "lolwut"
(compared using ==)
Shared Example Group: "git config is present" called from ./spec/commands/newgem_spec.rb:67
# ./spec/commands/newgem_spec.rb:19:in `block (4 levels) in <top (required)>'
2) bundle gem gem naming with underscore it should behave like git config is present git config user.{name,email} present sets gemspec email to git user.email if available
Failure/Error: expect(generated_gem.gemspec.email.first).to eq("[email protected]")
expected: "[email protected]"
got: "[email protected]"
(compared using ==)
Shared Example Group: "git config is present" called from ./spec/commands/newgem_spec.rb:67
# ./spec/commands/newgem_spec.rb:23:in `block (4 levels) in <top (required)>'
3) bundle gem gem naming with underscore git config user.{name,email} is not set it should behave like git config is absent sets gemspec author to default message if git user.name is not set or empty
Failure/Error: expect(generated_gem.gemspec.authors.first).to eq("TODO: Write your name")
expected: "TODO: Write your name"
got: "lolwut"
(compared using ==)
Shared Example Group: "git config is absent" called from ./spec/commands/newgem_spec.rb:78
# ./spec/commands/newgem_spec.rb:30:in `block (3 levels) in <top (required)>'
4) bundle gem gem naming with underscore git config user.{name,email} is not set it should behave like git config is absent sets gemspec email to default message if git user.email is not set or empty
Failure/Error: expect(generated_gem.gemspec.email.first).to eq("TODO: Write your email address")
expected: "TODO: Write your email address"
got: "[email protected]"
(compared using ==)
Shared Example Group: "git config is absent" called from ./spec/commands/newgem_spec.rb:78
5) bundle gem gem naming with dashed it should behave like git config is present git config user.{name,email} present sets gemspec author to git user.name if available
Failure/Error: expect(generated_gem.gemspec.authors.first).to eq("Bundler User")
expected: "Bundler User"
got: "lolwut"
(compared using ==)
Shared Example Group: "git config is present" called from ./spec/commands/newgem_spec.rb:243
# ./spec/commands/newgem_spec.rb:19:in `block (4 levels) in <top (required)>'
6) bundle gem gem naming with dashed it should behave like git config is present git config user.{name,email} present sets gemspec email to git user.email if available
Failure/Error: expect(generated_gem.gemspec.email.first).to eq("[email protected]")
expected: "[email protected]"
got: "[email protected]"
(compared using ==)
Shared Example Group: "git config is present" called from ./spec/commands/newgem_spec.rb:243
# ./spec/commands/newgem_spec.rb:23:in `block (4 levels) in <top (required)>'
7) bundle gem gem naming with dashed git config user.{name,email} is not set it should behave like git config is absent sets gemspec author to default message if git user.name is not set or empty
Failure/Error: expect(generated_gem.gemspec.authors.first).to eq("TODO: Write your name")
expected: "TODO: Write your name"
got: "lolwut"
(compared using ==)
Shared Example Group: "git config is absent" called from ./spec/commands/newgem_spec.rb:254
# ./spec/commands/newgem_spec.rb:30:in `block (3 levels) in <top (required)>'
8) bundle gem gem naming with dashed git config user.{name,email} is not set it should behave like git config is absent sets gemspec email to default message if git user.email is not set or empty
Failure/Error: expect(generated_gem.gemspec.email.first).to eq("TODO: Write your email address")
expected: "TODO: Write your email address"
got: "[email protected]"
(compared using ==)
Shared Example Group: "git config is absent" called from ./spec/commands/newgem_spec.rb:254
# ./spec/commands/newgem_spec.rb:34:in `block (3 levels) in <top (required)>'
9) bundle outdated with no arguments returns a sorted list of outdated gems
Failure/Error: expect(out).to include("foo (1.0")
expected "Updating /Users/gnufied/nomads/bundler/tmp/libs/zebra\nUpdating /Users/gnufied/nomads/bundler/tmp/libs/foo\nFetching source index from file:/Users/gnufied/nomads/bundler/tmp/gems/remote2/\nResolving dependencies...\n\nOutdated gems included in the bundle:\n * activesupport (3.0 > 2.3.5) Gemfile specifies \"= 2.3.5\"" to include "foo (1.0"
Diff:
@@ -1,2 +1,8 @@
-foo (1.0
+Updating /Users/gnufied/nomads/bundler/tmp/libs/zebra
+Updating /Users/gnufied/nomads/bundler/tmp/libs/foo
+Fetching source index from file:/Users/gnufied/nomads/bundler/tmp/gems/remote2/
+Resolving dependencies...
+
+Outdated gems included in the bundle:
+ * activesupport (3.0 > 2.3.5) Gemfile specifies "= 2.3.5"
# ./spec/commands/outdated_spec.rb:29:in `block (3 levels) in <top (required)>'
10) bundle outdated with specified gems returns list of outdated gems
Failure/Error: expect(out).to include("foo (1.0")
expected "Updating /Users/gnufied/nomads/bundler/tmp/libs/foo\nFetching source index from file:/Users/gnufied/nomads/bundler/tmp/gems/remote2/\nResolving dependencies...\n\nYour bundle is up to date!" to include "foo (1.0"
Diff:
@@ -1,2 +1,6 @@
-foo (1.0
+Updating /Users/gnufied/nomads/bundler/tmp/libs/foo
+Fetching source index from file:/Users/gnufied/nomads/bundler/tmp/gems/remote2/
+Resolving dependencies...
+
+Your bundle is up to date!
# ./spec/commands/outdated_spec.rb:72:in `block (3 levels) in <top (required)>'
11) bundle show with a git repo prints out git info
Failure/Error: expect(out).to include("foo (1.0 #{@git.ref_for('master', 6)}")
expected "Gems included by the bundle:\n * bundler (1.4.0.pre.1)\n * foo (1.0)" to include "foo (1.0 1cb6972"
Diff:
@@ -1,2 +1,4 @@
-foo (1.0 1cb6972
+Gems included by the bundle:
+ * bundler (1.4.0.pre.1)
+ * foo (1.0)
# ./spec/commands/show_spec.rb:75:in `block (2 levels) in <top (required)>'
13) bundle show with a git repo doesn't print the branch when tied to a ref
Failure/Error: expect(out).to include("foo (1.0 #{sha[0..6]})")
expected "Gems included by the bundle:\n * bundler (1.4.0.pre.1)\n * foo (1.0)" to include "foo (1.0 090805d)"
Diff:
@@ -1,2 +1,4 @@
-foo (1.0 090805d)
+Gems included by the bundle:
+ * bundler (1.4.0.pre.1)
+ * foo (1.0)
# ./spec/commands/show_spec.rb:100:in `block (2 levels) in <top (required)>'
14) bundle lock with git gems provides correct #full_gem_path
Failure/Error: expect(out).to eq(bundle("show foo"))
expected: "/Users/gnufied/nomads/bundler/tmp/gems/system/bundler/gems/foo-1.0-84e3278ebb12"
got: ""
(compared using ==)
# ./spec/lock/git_spec.rb:32:in `block (2 levels) in <top (required)>'
15) bundle platform bundle outdated returns list of outdated gems when the ruby version matches
Failure/Error: expect(out).to include("foo (1.0")
expected "Updating /Users/gnufied/nomads/bundler/tmp/libs/foo\nFetching source index from file:/Users/gnufied/nomads/bundler/tmp/gems/remote2/\nResolving dependencies...\n\nOutdated gems included in the bundle:\n * activesupport (3.0 > 2.3.5) Gemfile specifies \"= 2.3.5\"" to include "foo (1.0"
Diff:
@@ -1,2 +1,7 @@
-foo (1.0
+Updating /Users/gnufied/nomads/bundler/tmp/libs/foo
+Fetching source index from file:/Users/gnufied/nomads/bundler/tmp/gems/remote2/
+Resolving dependencies...
+
+Outdated gems included in the bundle:
+ * activesupport (3.0 > 2.3.5) Gemfile specifies "= 2.3.5"
# ./spec/other/platform_spec.rb:978:in `block (3 levels) in <top (required)>'
16) bundle platform bundle outdated returns list of outdated gems when the ruby version matches for any engine
Failure/Error: expect(out).to include("foo (1.0")
expected "Updating /Users/gnufied/nomads/bundler/tmp/libs/foo\nFetching source index from file:/Users/gnufied/nomads/bundler/tmp/gems/remote2/\nResolving dependencies...\n\nOutdated gems included in the bundle:\n * activesupport (3.0 > 2.3.5) Gemfile specifies \"= 2.3.5\"" to include "foo (1.0"
Diff:
@@ -1,2 +1,7 @@
-foo (1.0
+Updating /Users/gnufied/nomads/bundler/tmp/libs/foo
+Fetching source index from file:/Users/gnufied/nomads/bundler/tmp/gems/remote2/
+Resolving dependencies...
+
+Outdated gems included in the bundle:
+ * activesupport (3.0 > 2.3.5) Gemfile specifies "= 2.3.5"
# ./spec/other/platform_spec.rb:998:in `block (4 levels) in <top (required)>'
# ./spec/support/helpers.rb:315:in `simulate_ruby_engine'
# ./spec/other/platform_spec.rb:982:in `block (3 levels) in <top (required)>'
17) Bundler.setup ignores Gem.refresh
Failure/Error: expect(out).to eq("[]")
expected: "[]"
got: "[#<Gem::Specification:0x3fd2aed00820 rack-1.0.0>]"
(compared using ==)
# ./spec/runtime/setup_spec.rb:647:in `block (2 levels) in <top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment