spec/paginate/config_spec.rb in paginate-1.0.1 vs spec/paginate/config_spec.rb in paginate-2.0.0
- old
+ new
@@ -5,24 +5,19 @@
Paginate.configure do |config|
config.param_name = :p
config.size = 50
end
- Paginate::Config.param_name.should == :p
- Paginate::Config.size.should == 50
+ expect(Paginate::Config.param_name).to eql(:p)
+ expect(Paginate::Config.size).to eql(50)
end
- it "deprecates Paginate.setup method" do
- Paginate.should_receive(:warn).once
- Paginate.setup {}
- end
-
it "returns configuration as hash" do
Paginate.configure do |config|
config.param_name = :p
config.size = 25
end
options = {:param_name => :p, :size => 25}
- Paginate::Config.to_hash.should == options
+ expect(Paginate::Config.to_hash).to eql(options)
end
end