Skip to content

Commit

Permalink
Reorganize spec/ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 30, 2013
1 parent a967167 commit aabc4b6
Show file tree
Hide file tree
Showing 159 changed files with 25 additions and 73 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,4 +1,4 @@
require File.expand_path('../../../fixtures/constants', __FILE__)
require File.expand_path('../../fixtures/constants', __FILE__)

CD_CONST1 = :const1

Expand Down
@@ -1,4 +1,4 @@
require File.expand_path('../../../fixtures/constants', __FILE__)
require File.expand_path('../../fixtures/constants', __FILE__)

CS_CONST1 = :const1

Expand Down
@@ -1,4 +1,4 @@
require File.expand_path('../../../fixtures/constants', __FILE__)
require File.expand_path('../../fixtures/constants', __FILE__)

describe "Module#const_missing" do
it "is called when an undefined constant is referenced via literal form" do
Expand Down
@@ -1,4 +1,4 @@
require File.expand_path('../../../fixtures/constants', __FILE__)
require File.expand_path('../../fixtures/constants', __FILE__)

module ConstantSpecs
end
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions spec/corelib/module/module_function_spec.rb
@@ -1,5 +1,3 @@
require File.expand_path('../../../spec_helper', __FILE__)

describe "Module#module_function with specific method names" do
it "creates duplicates of the given instance methods on the Module object" do
m = Module.new do
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 0 additions & 13 deletions spec/corelib/numeric/divmod_spec.rb

This file was deleted.

File renamed without changes.
File renamed without changes.
9 changes: 0 additions & 9 deletions spec/corelib/numeric/equal_spec.rb

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
40 changes: 21 additions & 19 deletions spec/corelib/numeric/to_s_spec.rb
@@ -1,24 +1,26 @@
describe 'Numeric#to_s' do
it 'converts to a string representation' do
0.to_s.should == '0'
1.to_s.should == '1'
9.to_s.should == '9'
10.to_s.should == '10'
describe "Fixnum#to_s when given a base" do
it "returns self converted to a String in the given base" do
12345.to_s(2).should == "11000000111001"
12345.to_s(8).should == "30071"
12345.to_s(10).should == "12345"
12345.to_s(16).should == "3039"
95.to_s(16).should == "5f"
12345.to_s(36).should == "9ix"
end

it 'converts to different radices' do
10.to_s(10).should == '10'

1.to_s(2).should == '1'
2.to_s(2).should == '10'
10.to_s(2).should == '1010'

1.to_s(16).should == '1'
10.to_s(16).should == 'a'
15.to_s(16).should == 'f'
16.to_s(16).should == '10'
it "raises an ArgumentError if the base is less than 2 or higher than 36" do
lambda { 123.to_s(-1) }.should raise_error(ArgumentError)
lambda { 123.to_s(0) }.should raise_error(ArgumentError)
lambda { 123.to_s(1) }.should raise_error(ArgumentError)
lambda { 123.to_s(37) }.should raise_error(ArgumentError)
end
end

35.to_s(36).should == 'z'
36.to_s(36).should == '10'
describe "Numeric#to_s when no base given" do
it "returns self converted to a String using base 10" do
255.to_s.should == '255'
3.to_s.should == '3'
0.to_s.should == '0'
(-9002).to_s.should == '-9002'
end
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 0 additions & 26 deletions spec/rubyspec/core/numeric/to_s_spec.rb

This file was deleted.

0 comments on commit aabc4b6

Please sign in to comment.