Skip to content

Commit

Permalink
Fix spec describe convention #instance_method, .class_method
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Cantero committed Feb 14, 2016
1 parent 74e25c7 commit c64085c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/shoryuken/core_ext_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

RSpec.describe 'Core Extensions' do
describe Hash do
describe 'stringify_keys' do
describe '#stringify_keys' do
it 'converts keys into strings' do
expect({ :key1 => 'value1', 'key2' => 'value2' }.stringify_keys).to eq('key1' => 'value1', 'key2' => 'value2')
end
end

describe 'symbolize_keys' do
it 'converts keys into strings' do
describe '#symbolize_keys' do
it 'converts keys into symbols' do
expect({ :key1 => 'value1', 'key2' => 'value2' }.symbolize_keys).to eq(:key1 => 'value1', key2: 'value2')
end
end

describe 'deep_symbolize_keys' do
it 'converts keys into strings' do
describe '#deep_symbolize_keys' do
it 'converts keys into symbols' do
expect({ :key1 => 'value1',
'key2' => 'value2',
'key3' => {
Expand Down

0 comments on commit c64085c

Please sign in to comment.