Permalink
Browse files

Fix specs to load in < 1.9, style cleanup.

  • Loading branch information...
1 parent 0a8b18c commit aca0ae48d35b680958a2629fa8c87d3e51616298 @brixen brixen committed Apr 25, 2012
View
5 spec/ruby/core/symbol/length_spec.rb
@@ -1,8 +1,9 @@
require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../shared/length', __FILE__)
ruby_version_is "1.9" do
+ require File.expand_path('../shared/length', __FILE__)
+
describe "Symbol#length" do
- it_behaves_like(:symbol_length, :length)
+ it_behaves_like :symbol_length, :length
end
end
View
2 spec/ruby/core/symbol/shared/length.rb
@@ -1,4 +1,4 @@
-# coding: utf-8
+# -*- encoding: utf-8 -*-
describe :symbol_length, :shared => true do
it "returns 0 for empty name" do
View
3 spec/ruby/core/symbol/size_spec.rb
@@ -1,7 +1,8 @@
require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../shared/length', __FILE__)
ruby_version_is "1.9" do
+ require File.expand_path('../shared/length', __FILE__)
+
describe "Symbol#size" do
it_behaves_like(:symbol_length, :size)
end

0 comments on commit aca0ae4

Please sign in to comment.