+ Upgrades our code to a recent rspec
This commit is contained in:
parent
36904e208a
commit
9a0da07f73
4 changed files with 7 additions and 7 deletions
|
@ -1,6 +1,5 @@
|
|||
require 'net/ldap'
|
||||
require 'rubygems'
|
||||
|
||||
Spec::Runner.configure do |config|
|
||||
RSpec.configure do |config|
|
||||
config.mock_with :flexmock
|
||||
end
|
||||
|
|
|
@ -4,12 +4,13 @@ require 'net/ber'
|
|||
require 'net/ldap'
|
||||
|
||||
describe "BER encoding of" do
|
||||
def properly_encode_and_decode
|
||||
simple_matcher('properly encode and decode') do |given|
|
||||
|
||||
RSpec::Matchers.define :properly_encode_and_decode do
|
||||
match do |given|
|
||||
given.to_ber.read_ber.should == given
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
context "arrays" do
|
||||
it "should properly encode/decode []" do
|
||||
[].should properly_encode_and_decode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue