Skip to content

Instantly share code, notes, and snippets.

View voxik's full-sized avatar

Vít Ondruch voxik

View GitHub Profile
@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?= <[email protected]>
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
$ 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 @@
$ bundle exec bin/rspec spec/autotest
No examples were matched by {:focus=>true}, running all
FF................
Failures:
1) failed_results_re for autotest output does not have color enabled matches a failure
Failure/Error: example_output[re, 2].should == __FILE__.sub(File.expand_path('.'),'.')
expected: "./spec/autotest/failed_results_re_spec.rb"
got: "bin/rspec" (using ==)
@voxik
voxik / gist:743235
Created December 16, 2010 09:39
Fixed-RSpec-1-compatibilty.patch
From 04a56c44f8f684aa45fe89a0a6f2c13aecbb5775 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <[email protected]>
Date: Thu, 16 Dec 2010 10:36:41 +0100
Subject: [PATCH] Fixed RSpec 1 compatibilty
---
spec/spec_helper.rb | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
From 209aa3bcc57cf5ead57a179a8045d50e41a8d63d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <[email protected]>
Date: Sat, 6 Nov 2010 17:09:47 +0100
Subject: [PATCH] Make accessible_by play better with default scaffolded RSpec.
---
lib/cancan/active_record_additions.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/cancan/active_record_additions.rb b/lib/cancan/active_record_additions.rb
From dba0f7e2b6f99d292f47cd3cb6fc8e12b8225491 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <[email protected]>
Date: Wed, 27 Oct 2010 17:39:26 +0200
Subject: [PATCH] Bring spoon alive.
---
lib/redcar.rb | 2 +-
lib/redcar/runner.rb | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
From c755c3fad82b108703985e1b5dc01ce50339e05c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <[email protected]>
Date: Thu, 21 Oct 2010 01:31:46 +0200
Subject: [PATCH] Fixed spoon for Ruby 1.9.
---
lib/spoon.rb | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/spoon.rb b/lib/spoon.rb
From b0031ca74fdcf66f598a396751aabd68854646c0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <[email protected]>
Date: Thu, 21 Oct 2010 01:34:19 +0200
Subject: [PATCH] Fixed spoon for Ruby 1.8.
---
lib/spoon.rb | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/spoon.rb b/lib/spoon.rb
From c3392a1440b4a341879b3f2665a8bf63eebeeb77 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <[email protected]>
Date: Mon, 18 Oct 2010 19:18:01 +0200
Subject: [PATCH] Pass parameters into contstructor. This should play better with default scaffolded RSpec test.
---
lib/cancan/controller_resource.rb | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
mode change 100644 => 100755 lib/cancan/controller_resource.rb
Gem.pre_install do |gem_installer|
unless gem_installer.spec.extensions.empty?
require 'rubygems/defaults/which'
unless Which::Gcc.exe
raise Gem::InstallError,
"#{gem_installer.spec.name} requires installed build tools to build native extension." +
"Please update your path to include them or download DevKit from " +
"http://github.com/downloads/oneclick/rubyinstaller/DevKit-4.5.0-20100819-1536-sfx.exe " +
"and follow the instructions http://wiki.github.com/oneclick/rubyinstaller/development-kit"