Created
November 16, 2011 09:14
-
-
Save voxik/1369650 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 0f47c1b291ec426b1e52498001c6bf0dc3f56b89 Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <[email protected]> | |
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(-) | |
diff --git a/spec/little-plugger_spec.rb b/spec/little-plugger_spec.rb | |
index 981e1f8..967d9a6 100644 | |
--- a/spec/little-plugger_spec.rb | |
+++ b/spec/little-plugger_spec.rb | |
@@ -12,14 +12,14 @@ describe LittlePlugger do | |
it "generates a default plugin path" do | |
LittlePlugger.default_plugin_path(LittlePlugger).should == 'little_plugger/plugins' | |
- LittlePlugger.default_plugin_path(Spec::Runner).should == 'spec/runner/plugins' | |
+ LittlePlugger.default_plugin_path(Process::Status).should == 'process/status/plugins' | |
end | |
it "generates a default plugin module" do | |
LittlePlugger.default_plugin_module('little_plugger').should == LittlePlugger | |
lambda {LittlePlugger.default_plugin_module('little_plugger/plugins')}. | |
should raise_error(NameError, 'uninitialized constant LittlePlugger::Plugins') | |
- LittlePlugger.default_plugin_module('spec/runner').should == Spec::Runner | |
+ LittlePlugger.default_plugin_module('process/status').should == Process::Status | |
end | |
end | |
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb | |
index ca4be89..26fa100 100644 | |
--- a/spec/spec_helper.rb | |
+++ b/spec/spec_helper.rb | |
@@ -2,15 +2,4 @@ | |
require File.expand_path( | |
File.join(File.dirname(__FILE__), %w[.. lib little-plugger])) | |
-Spec::Runner.configure do |config| | |
- # == Mock Framework | |
- # | |
- # RSpec uses it's own mocking framework by default. If you prefer to | |
- # use mocha, flexmock or RR, uncomment the appropriate line: | |
- # | |
- # config.mock_with :mocha | |
- # config.mock_with :flexmock | |
- # config.mock_with :rr | |
-end | |
- | |
# EOF | |
-- | |
1.7.7.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment