diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-27 19:04:29 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-27 19:04:29 +0200 |
commit | d55ade16861d0700e302f50945560e8570eddcd7 (patch) | |
tree | c060eeebda2144cb47e4d56eb271724fddd9856a /spec | |
parent | 5f14a6bcf8ca5ec4325bae401069c3a03a617bd0 (diff) | |
download | gitlab-ce-d55ade16861d0700e302f50945560e8570eddcd7.tar.gz |
notification scaffold
Diffstat (limited to 'spec')
-rw-r--r-- | spec/helpers/notifications_helper_spec.rb | 15 | ||||
-rw-r--r-- | spec/requests/notifications_spec.rb | 11 | ||||
-rw-r--r-- | spec/routing/notifications_routing_spec.rb | 13 |
3 files changed, 39 insertions, 0 deletions
diff --git a/spec/helpers/notifications_helper_spec.rb b/spec/helpers/notifications_helper_spec.rb new file mode 100644 index 00000000000..f97959ee8f4 --- /dev/null +++ b/spec/helpers/notifications_helper_spec.rb @@ -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 diff --git a/spec/requests/notifications_spec.rb b/spec/requests/notifications_spec.rb new file mode 100644 index 00000000000..07db7c05987 --- /dev/null +++ b/spec/requests/notifications_spec.rb @@ -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 diff --git a/spec/routing/notifications_routing_spec.rb b/spec/routing/notifications_routing_spec.rb new file mode 100644 index 00000000000..6880d2819d1 --- /dev/null +++ b/spec/routing/notifications_routing_spec.rb @@ -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 |