spec/comma/header_extractor_spec.rb in comma-4.3.2 vs spec/comma/header_extractor_spec.rb in comma-4.4.0
- old
+ new
@@ -17,30 +17,30 @@
@headers = @book.to_comma_headers
end
describe 'when no parameters are provided' do
it 'should use the method name as the header name, humanized' do
- @headers.should include('Description')
+ expect(@headers).to include('Description')
end
end
describe 'when given a string description as a parameter' do
it 'should use the string value, unmodified' do
- @headers.should include('Title')
+ expect(@headers).to include('Title')
end
end
describe 'when an hash is passed as a parameter' do
describe 'with a string value' do
it 'should use the string value, unmodified' do
- @headers.should include('ISBN-10')
+ expect(@headers).to include('ISBN-10')
end
end
describe 'with a non-string value' do
it 'should use the non string value converted to a string, humanized' do
- @headers.should include('Issuer')
+ expect(@headers).to include('Issuer')
end
end
end
end
@@ -54,8 +54,8 @@
end
end.new(1, 'John Doe').to_comma_headers
end
it 'should extract headers' do
- @headers.should eq(['', 'STATIC', 'STATIC'])
+ expect(@headers).to eq(['', 'STATIC', 'STATIC'])
end
end