spec/baron_spec.rb in baron-1.0.13 vs spec/baron_spec.rb in baron-1.0.14
- old
+ new
@@ -128,11 +128,11 @@
it_behaves_like "Server Response"
it "returns expected content" do
@response.body.should include(@config[:title])
- @response.body.should include("http://localhost:3000/feed.atom")
+ @response.body.should include("http://localhost/feed.atom")
@response.body.scan(/<entry>/).count.should == 5
@response.body.scan(/<\/entry>/).count.should == 5
@response.body.should include('<feed')
@response.body.should include('</feed>')
end
@@ -147,13 +147,9 @@
@response = @baron.get('/robots.txt')
end
it_behaves_like "Server Response"
- it "renders expected parameters" do
- @response.body.should include("http://localhost:3000/feed.atom")
- end
-
it "returns text content type" do
@response['Content-Type'].should == 'text/plain'
end
end