spec/grape/middleware/versioner_spec.rb in grape-0.7.0 vs spec/grape/middleware/versioner_spec.rb in grape-0.8.0
- old
+ new
@@ -3,20 +3,20 @@
describe Grape::Middleware::Versioner do
let(:klass) { Grape::Middleware::Versioner }
it 'recognizes :path' do
- klass.using(:path).should == Grape::Middleware::Versioner::Path
+ expect(klass.using(:path)).to eq(Grape::Middleware::Versioner::Path)
end
it 'recognizes :header' do
- klass.using(:header).should == Grape::Middleware::Versioner::Header
+ expect(klass.using(:header)).to eq(Grape::Middleware::Versioner::Header)
end
it 'recognizes :param' do
- klass.using(:param).should == Grape::Middleware::Versioner::Param
+ expect(klass.using(:param)).to eq(Grape::Middleware::Versioner::Param)
end
it 'recognizes :accept_version_header' do
- klass.using(:accept_version_header).should == Grape::Middleware::Versioner::AcceptVersionHeader
+ expect(klass.using(:accept_version_header)).to eq(Grape::Middleware::Versioner::AcceptVersionHeader)
end
end