notification scaffold

This commit is contained in:
Dmitriy Zaporozhets 2013-03-27 19:04:29 +02:00
parent 5f14a6bcf8
commit d55ade1686
10 changed files with 119 additions and 7 deletions

View 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

View 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

View 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