spec/steam/news_spec.rb in steam-api-1.0.3 vs spec/steam/news_spec.rb in steam-api-1.1.0
- old
+ new
@@ -1,15 +1,15 @@
require 'spec_helper'
describe Steam::News do
describe '.get' do
- it 'should allow users to look up a list news for an app' do
- expect(Steam::News.get(440))
- .to_not be_nil
+ let(:result) { Steam::News.get(440) }
+
+ it 'allow users to look up a news list' do
+ expect(result).to_not be_nil
end
- it 'should allow users to look up a list news for an app' do
- news = Steam::News.get(440)
- expect(news.count).to eq(20)
+ it 'returns the first 20 articles' do
+ expect(result.count).to eq(20)
end
end
end