Skip to content

Commit feebd53

Browse files
committed
Fix skipped tests in hash_spec
1 parent 8576dc7 commit feebd53

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

spec/bitbucket_rest_api/core_ext/hash_spec.rb

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,21 @@
1313
end
1414

1515
context '#except!' do
16-
# TODO fix this test after fixing except!
17-
xit 'should respond to except!' do
16+
it 'should respond to except!' do
1817
@nested_hash.should respond_to :except!
1918
copy = @nested_hash.dup
20-
copy.except!('b', 'a')
21-
copy.should be_empty
19+
copy.except!('b', 'a', 'c')
20+
expect(copy).to be_empty
2221
end
2322
end
2423

2524
context '#except' do
2625
it 'should respond to except' do
27-
expect(@nested_hash).to respond_to :except
26+
@nested_hash.should respond_to :except
2827
end
2928

30-
# TODO fix this test after fixing except!
31-
xit 'should remove key from the hash' do
32-
@nested_hash.except('a').should be_empty
29+
it 'should remove key from the hash' do
30+
expect(@nested_hash.except('a')).to be_empty
3331
end
3432
end
3533

0 commit comments

Comments
 (0)