mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
15 lines
270 B
Ruby
15 lines
270 B
Ruby
|
describe :set_add, shared: true do
|
||
|
before :each do
|
||
|
@set = Set.new
|
||
|
end
|
||
|
|
||
|
it "adds the passed Object to self" do
|
||
|
@set.send(@method, "dog")
|
||
|
@set.should include("dog")
|
||
|
end
|
||
|
|
||
|
it "returns self" do
|
||
|
@set.send(@method, "dog").should equal(@set)
|
||
|
end
|
||
|
end
|