spec/rack/body_injector_spec.rb in rack-env-notifier-0.0.5 vs spec/rack/body_injector_spec.rb in rack-env-notifier-0.0.6

- old
+ new

@@ -6,15 +6,15 @@ subject { regex } it { should be_kind_of(Regexp) } it 'only picks a valid <body> tag' do - regex.match("<body></body>").to_s.should eq('<body>') - regex.match("<body><h1></h1></body>").to_s.should eq('<body>') - regex.match("<body attribute='something'><h1></h1></body>").to_s.should eq("<body attribute='something'>") + expect(regex.match("<body></body>").to_s).to eq('<body>') + expect(regex.match("<body><h1></h1></body>").to_s).to eq('<body>') + expect(regex.match("<body attribute='something'><h1></h1></body>").to_s).to eq("<body attribute='something'>") end - it 'responds false when no head tag' do - regex.match("<html></html>").should be_false + it 'responds nil when no head tag' do + expect(regex.match("<html></html>")).to eq nil end end end