File tree Expand file tree Collapse file tree 5 files changed +18
-6
lines changed Expand file tree Collapse file tree 5 files changed +18
-6
lines changed Original file line number Diff line number Diff line change
1
+ language : ruby
2
+ rvm :
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - 1.9.3
6
+ - 2.0.0
7
+ - jruby-18mode
8
+ - jruby-19mode
9
+ - rbx-18mode
10
+ - rbx-19mode
11
+ - ree
12
+ script : bundle exec rake spec
Original file line number Diff line number Diff line change 1
- source : rubygems
1
+ source 'https:// rubygems.org'
2
2
gemspec
Original file line number Diff line number Diff line change 1
- = Net::LDAP for Ruby
1
+ = Net::LDAP for Ruby {<img src="https://travis-ci.org/ruby-ldap/ruby-net-ldap.png" />}[https://travis-ci.org/ruby-ldap/ruby-net-ldap]
2
2
3
3
== Description
4
4
Original file line number Diff line number Diff line change 89
89
[ "6a31b4a12aa27a41aca9603f27dd5116" ] . pack ( "H*" ) . to_ber_bin . should ==
90
90
"\x04 \x10 " + "j1\xB4 \xA1 *\xA2 zA\xAC \xA9 `?'\xDD Q\x16 "
91
91
end
92
- it "should fail on strings that can not be converted to UTF-8" do
92
+ it "should not fail on strings that can not be converted to UTF-8" do
93
93
error = Encoding ::UndefinedConversionError
94
- lambda { "\x81 " . to_ber } . should raise_exception ( error )
94
+ lambda { "\x81 " . to_ber } . should_not raise_exception ( error )
95
95
end
96
96
end
97
97
end
Original file line number Diff line number Diff line change 3
3
describe Net ::LDAP , "search method" do
4
4
class FakeConnection
5
5
def search ( args )
6
- OpenStruct . new ( :result_code => 1 , :message => "error" )
6
+ OpenStruct . new ( :result_code => 1 , :message => "error" , :success? => false )
7
7
end
8
8
end
9
9
@@ -22,7 +22,7 @@ def search(args)
22
22
context "when :return_result => false" do
23
23
it "should return false upon error" do
24
24
result = @connection . search ( :return_result => false )
25
- result . result_code . should == 1
25
+ result . should be_false
26
26
end
27
27
end
28
28
You can’t perform that action at this time.
0 commit comments