spec/lib/blacklight/routes_spec.rb in blacklight-5.1.1 vs spec/lib/blacklight/routes_spec.rb in blacklight-5.2.0
- old
+ new
@@ -5,20 +5,20 @@
describe "solr_document" do
describe "without constraints" do
let(:options) { Hash.new }
it "should define the resources" do
- router.should_receive(:resources).with(:solr_document, {:path=>:records, :controller=>:records, :only=>[:show, :update]})
- router.should_receive(:resources).with(:records, :only=>[:show, :update])
+ router.should_receive(:resources).with(:solr_document, {:path=>:records, :controller=>:records, :only=>[:show]})
+ router.should_receive(:resources).with(:records, :only=>[:show])
subject.solr_document(:records)
end
end
describe "with constraints" do
let(:options) { { :constraints => {id: /[a-z]+/, format: false } } }
it "should define the resources" do
- router.should_receive(:resources).with(:solr_document, {:path=>:records, :controller=>:records, :only=>[:show, :update], :constraints=>{:id=>/[a-z]+/, :format=>false} })
- router.should_receive(:resources).with(:records, :only=>[:show, :update], :constraints=>{:id=>/[a-z]+/, :format=>false})
+ router.should_receive(:resources).with(:solr_document, {:path=>:records, :controller=>:records, :only=>[:show], :constraints=>{:id=>/[a-z]+/, :format=>false} })
+ router.should_receive(:resources).with(:records, :only=>[:show], :constraints=>{:id=>/[a-z]+/, :format=>false})
subject.solr_document(:records)
end
end
end
end