Skip to content

Commit 9a0da07

Browse files
committed
+ Upgrades our code to a recent rspec
1 parent 36904e2 commit 9a0da07

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ gem 'hoe-git'
55

66
group :development do
77
gem 'metaid'
8-
gem 'rspec'
8+
gem 'rspec', '~> 2.0'
99
gem 'flexmock'
1010
end

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ DEPENDENCIES
2626
hoe
2727
hoe-git
2828
metaid
29-
rspec
29+
rspec (~> 2.0)

spec/spec_helper.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
require 'net/ldap'
2-
require 'rubygems'
32

4-
Spec::Runner.configure do |config|
3+
RSpec.configure do |config|
54
config.mock_with :flexmock
65
end

spec/unit/ber/ber_spec.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
require 'net/ldap'
55

66
describe "BER encoding of" do
7-
def properly_encode_and_decode
8-
simple_matcher('properly encode and decode') do |given|
7+
8+
RSpec::Matchers.define :properly_encode_and_decode do
9+
match do |given|
910
given.to_ber.read_ber.should == given
1011
end
1112
end
12-
13+
1314
context "arrays" do
1415
it "should properly encode/decode []" do
1516
[].should properly_encode_and_decode

0 commit comments

Comments
 (0)