projects
/
feedcatcher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d8d5295
)
More tinkering with feed controller spec
author
Neil Smith
<neil.git@njae.me.uk>
Tue, 7 Jan 2014 09:46:11 +0000
(09:46 +0000)
committer
Neil Smith
<neil.git@njae.me.uk>
Tue, 7 Jan 2014 09:46:11 +0000
(09:46 +0000)
spec/controllers/feed_controller_spec.rb
patch
|
blob
|
history
diff --git
a/spec/controllers/feed_controller_spec.rb
b/spec/controllers/feed_controller_spec.rb
index c2b71a4459b823059b755b88659183c8c35406a4..9e75e8c238a4f3aa681ae216074546ccef2c49f2 100644
(file)
--- a/
spec/controllers/feed_controller_spec.rb
+++ b/
spec/controllers/feed_controller_spec.rb
@@
-8,7
+8,6
@@
describe FeedController do
it "responds successfully with an HTTP 200 status code" do
get :index
expect(response).to be_success
it "responds successfully with an HTTP 200 status code" do
get :index
expect(response).to be_success
- expect(response.status).to eq(200)
end
it "renders the index template" do
end
it "renders the index template" do
@@
-33,15
+32,19
@@
describe FeedController do
expect(response).to redirect_to(index_path)
end
expect(response).to redirect_to(index_path)
end
+ it "does not redirect an emtpy rss document for an empty feed" do
+ get :show, feed_name: "empty_feed", format: "rss"
+ expect(response).to be_success
+ end
+
it "returns an emtpy rss document for an empty feed" do
get :show, feed_name: "empty_feed", format: "rss"
it "returns an emtpy rss document for an empty feed" do
get :show, feed_name: "empty_feed", format: "rss"
- expect(
response.status).to be(200)
+ expect(
assigns(:feed_items)).to be_empty
end
it "responds successfully with an HTTP 200 status code" do
get :show, feed_name: "test_feed"
expect(response).to be_success
end
it "responds successfully with an HTTP 200 status code" do
get :show, feed_name: "test_feed"
expect(response).to be_success
- expect(response.status).to eq(200)
end
it "renders the index template" do
end
it "renders the index template" do