summaryrefslogtreecommitdiff
path: root/spec/ruby/core/gc/start_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/gc/start_spec.rb')
-rw-r--r--spec/ruby/core/gc/start_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/ruby/core/gc/start_spec.rb b/spec/ruby/core/gc/start_spec.rb
new file mode 100644
index 0000000000..c941058969
--- /dev/null
+++ b/spec/ruby/core/gc/start_spec.rb
@@ -0,0 +1,12 @@
+require_relative '../../spec_helper'
+
+describe "GC.start" do
+ it "always returns nil" do
+ GC.start.should == nil
+ GC.start.should == nil
+ end
+
+ it "accepts keyword arguments" do
+ GC.start(full_mark: true, immediate_sweep: true).should == nil
+ end
+end