notification scaffold
This commit is contained in:
parent
5f14a6bcf8
commit
d55ade1686
10 changed files with 119 additions and 7 deletions
15
spec/helpers/notifications_helper_spec.rb
Normal file
15
spec/helpers/notifications_helper_spec.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
require 'spec_helper'
|
||||
|
||||
# Specs in this file have access to a helper object that includes
|
||||
# the NotificationsHelper. For example:
|
||||
#
|
||||
# describe NotificationsHelper do
|
||||
# describe "string concat" do
|
||||
# it "concats two strings with spaces" do
|
||||
# helper.concat_strings("this","that").should == "this that"
|
||||
# end
|
||||
# end
|
||||
# end
|
||||
describe NotificationsHelper do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
11
spec/requests/notifications_spec.rb
Normal file
11
spec/requests/notifications_spec.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe "Notifications" do
|
||||
describe "GET /notifications" do
|
||||
it "works! (now write some real specs)" do
|
||||
# Run the generator again with the --webrat flag if you want to use webrat methods/matchers
|
||||
get notifications_path
|
||||
response.status.should be(200)
|
||||
end
|
||||
end
|
||||
end
|
13
spec/routing/notifications_routing_spec.rb
Normal file
13
spec/routing/notifications_routing_spec.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
require "spec_helper"
|
||||
|
||||
describe NotificationsController do
|
||||
describe "routing" do
|
||||
it "routes to #show" do
|
||||
get("/profile/notifications").should route_to("notifications#show")
|
||||
end
|
||||
|
||||
it "routes to #update" do
|
||||
put("/profile/notifications").should route_to("notifications#update")
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue