spec/deface/search_spec.rb in deface-1.8.2 vs spec/deface/search_spec.rb in deface-1.9.0

- old
+ new

@@ -18,9 +18,15 @@ end it "should return empty array when no details hash passed" do expect(Deface::Override.find({})).to eq([]) end + + context 'with a frozen string as virtual_path' do + it 'works' do + expect(Deface::Override.find({:virtual_path => "posts/index".freeze}).size).to eq(1) + end + end end describe "#find_using" do before do @override_partial = Deface::Override.new(:virtual_path => "posts/index", :name => "Posts#edit", :replace => "h1",