Skip to content

Commit

Permalink
update Utils spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilyas Garaev committed Apr 3, 2016
1 parent 681f124 commit 908d049
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/roo/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Roo
module Utils
extend self

LETTERS = ("A".."Z").to_a
LETTERS = ('A'..'Z').to_a

def split_coordinate(str)
@split_coordinate ||= {}
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/roo/utils_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
subject { described_class }

context '#number_to_letter' do
('A'..'Z').to_a.each_with_index do |letter, index|
described_class::LETTERS.each_with_index do |letter, index|
it "should return '#{ letter }' when passed #{ index + 1 }" do
expect(described_class.number_to_letter(index + 1)).to eq(letter)
end
Expand Down

0 comments on commit 908d049

Please sign in to comment.