spec
spec copied to clipboard
The Ruby Spec Suite aka ruby/spec
When providing a single encoding in the mode argument, the external encoding of the IO object is set to that encoding, the internal encoding is left blank. The ArgumentError in...
With a few remarks, since I'm not sure about some best practices here. * The feature is mentioned in #823 and assigned to @aardvark179 (at least, I guess that's what...
ruby/spec already contains some specs for 3.2, but we should aim to cover all new features and important changes. This will improve the test coverage of these features (and maybe...
The specs have one test for escaped backslashes in `Regexp#inspect`: ```ruby it "does not over escape" do Regexp.new('\\\/').inspect.should == "/\\\\\\//" end ``` The obvious implementation to make this spec pass...
Currently it's a mess with lambda in proc_spec.rb. Proposed organization: * block_spec.rb: only passing a block to something else * lambda_spec.rb: as it is, lambda semantics * proc_spec.rb: remove `lambda`...
Hi, in `core/process/constants_spec.rb` there are a few tests which explicitly test the values of the `RLIMIT_*` constants. These will fail on platforms which use different values for these constants. Example...
Ref: https://github.com/jruby/jruby/issues/8173 I'm not sure if this is the right way to add a spec or not. Please point it out if I miss something or there's a better way.
The Time comparison does cancel out the timezone differences, so even if you did not call the method, the spec would still pass.