Skip to content

Instantly share code, notes, and snippets.

View voxik's full-sized avatar

Vít Ondruch voxik

View GitHub Profile
$ bundle exec cucumber
Using the default profile...
..............................................................................................F-.......F.....................................................................................................................................................................................................................................F....F....F.........................F----........................................................................................................................................................................................................................
(::) failed steps (::)
expected: /ruby\ \-S\ rspec/
got: "/usr/bin/rake:19:in `load': no such file to load -- rake (LoadError)\n\tfrom /usr/bin/rake:19\n" (using =~)
Diff:
@@ -1,2 +1,3 @@
@voxik
voxik / gist:838366
Created February 22, 2011 08:19
Required missing helpers.
From 342c7ae0322a13aedda9a03652274aa8d9a1789b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
Date: Tue, 22 Feb 2011 09:17:13 +0100
Subject: [PATCH] Required missing helpers.
---
spec/rspec/core/formatters/helpers_spec.rb | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/spec/rspec/core/formatters/helpers_spec.rb b/spec/rspec/core/formatters/helpers_spec.rb
[vondruch@dhcp-25-1 rspec-core-2.5.1]$ bundle exec rspec spec/autotest/failed_results_re_spec.rb:19
Filtering by {:focus=>true} is not possible since you are already filtering by {:line_number=>19}
Run filtered using {:line_number=>19}
**************************************************
/^\s*\d+\).*\n\s+(?:\e\[\d*m)?Failure.*(\n(?:\e\[\d*m)?\s+#\s(.*)?:\d+(?::.*)?(?:\e\[\d*m)?)+$/m
**************************************************
"\nFailures:\n\n 1) group name example name\n Failure/Error: group.example(\"example name\") { \"this\".should eq(\"that\") }\n \n expected \"that\"\n got \"this\"\n \n (compared using ==)\n # /usr/lib/ruby/gems/1.8/gems/rspec-expectations-2.5.0/lib/rspec/expectations/fail_with.rb:29:in `fail_with'\n # /usr/lib/ruby/gems/1.8/gems/rspec-expectations-2.5.0/lib/rspec/expectations/handler.rb:19:in `handle_matcher'\n # /usr/lib/ruby/gems/1.8/gems/rspec-expectations-2.5.0/lib/rspec/expectations/extensions/kernel.rb:27:in `should'\n #
$ bundle exec rspec spec/rspec/core/formatters/
No examples were matched by {:focus=>true}, running all
................FFFF..F........F...
Failures:
1) RSpec::Core::Formatters::BaseTextFormatter#dump_failures for #share_examples_for outputs the name and location
Failure/Error: output.string.should include(
expected "\nFailures:\n\n 1) group name it should behave like foo bar example name\n Failure/Error: it(\"example name\") { \"this\".should eq(\"that\") }\n \n expected \"that\"\n got \"this\"\n \n (compared using ==)\n Shared Example Group: \"foo bar\" called from \n # /usr/lib/ruby/gems/1.8/gems/rspec-expectations-2.5.0/lib/rspec/expectations/fail_with.rb:29:in `fail_with'\n # /usr/lib/ruby/gems/1.8/gems/rspec-expectations-2.5.0/lib/rspec/expectations/handler.rb:19:in `handle_matcher'\n # /usr/lib/ruby/gems/1.8/gems/rspec-expectations-2.5.0/lib/rspec/expectations/extensions/kernel.rb:27:in `should'\n # /home/vondruch/fedora-review
@voxik
voxik / gist:879643
Created March 21, 2011 15:42
Explicitly require ERB.
From 314a59213beabf150be6202e10d93055bb8176c0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
Date: Mon, 21 Mar 2011 16:40:05 +0100
Subject: [PATCH] Explicitly require ERB
---
lib/database_cleaner/active_record/base.rb | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/database_cleaner/active_record/base.rb b/lib/database_cleaner/active_record/base.rb
$ make check
sample/test.rb:assignment ....................................................................................................................................................................................................................................................................................................................................................................................
sample/test.rb:condition ..
sample/test.rb:if/unless ...
sample/test.rb:case .....
sample/test.rb:while/until ........
sample/test.rb:exception ..........
sample/test.rb:array .......................................
sample/test.rb:hash ...........................
sample/test.rb:iterator ...............................................................................................................
$ make check
sample/test.rb:assignment ....................................................................................................................................................................................................................................................................................................................................................................................
sample/test.rb:condition ..
sample/test.rb:if/unless ...
sample/test.rb:case .....
sample/test.rb:while/until ........
sample/test.rb:exception ..........
sample/test.rb:array .......................................
sample/test.rb:hash ...........................
sample/test.rb:iterator ...............................................................................................................
$ rpmdiff --help
Usage: /usr/bin/rpmdiff [<options>] <old package> <new package>
Options:
-h, --help Output this message and exit
-i, --ignore File property to ignore when calculating differences (may be
used multiple times); valid values are: S (size), M (mode),
5 (checksum), D (device), N (inode), L (number of links),
V (vflags), U (user), G (group), F (digest), T (time)
$ rpmdiff -i T ./rubygem-rdoc-3.9.4-rc1.1.fc17.noarch.rpm './rubygem-rdoc-3.9.4-rc1.1.fc17.noarch(1).rpm'
@voxik
voxik / 0001-Add-dedicate-extensions-folder-into.patch
Created November 3, 2011 15:45
Add dedicate extensions folder into $LOAD_PATH.
From 301522f15c42af06f41c560245bd77d212850877 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
Date: Thu, 3 Nov 2011 16:43:05 +0100
Subject: [PATCH] Add dedicate extensions folder into .
---
lib/rubygems/specification.rb | 37 ++++++++++++++++++++++++++++++-------
1 files changed, 30 insertions(+), 7 deletions(-)
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
From 0f47c1b291ec426b1e52498001c6bf0dc3f56b89 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
Date: Wed, 16 Nov 2011 10:13:14 +0100
Subject: [PATCH] Make test suite compatible with RSpec2.
---
spec/little-plugger_spec.rb | 4 ++--
spec/spec_helper.rb | 11 -----------
2 files changed, 2 insertions(+), 13 deletions(-)