summaryrefslogtreecommitdiff
path: root/spec/controllers/tree_controller_spec.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-03 15:55:08 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-03 15:55:08 +0300
commitdfeef6c22849c04ffd225a0356fd11fb8e4907f6 (patch)
tree02eafb752d203a1ca93ee8442299771b3610d737 /spec/controllers/tree_controller_spec.rb
parent413a310faa17f626f351fa3afd6423e8782935a9 (diff)
downloadgitlab-ce-dfeef6c22849c04ffd225a0356fd11fb8e4907f6.tar.gz
Fixed API file raw functionality, Fixed tree controller tests. Added BlobController specs
Diffstat (limited to 'spec/controllers/tree_controller_spec.rb')
-rw-r--r--spec/controllers/tree_controller_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/tree_controller_spec.rb b/spec/controllers/tree_controller_spec.rb
index 8232f1472e1..f9fe4fe2010 100644
--- a/spec/controllers/tree_controller_spec.rb
+++ b/spec/controllers/tree_controller_spec.rb
@@ -26,17 +26,17 @@ describe TreeController do
end
context "valid branch, valid path" do
- let(:id) { 'master/README.md' }
+ let(:id) { 'master/app/' }
it { should respond_with(:success) }
end
context "valid branch, invalid path" do
- let(:id) { 'master/invalid-path.rb' }
+ let(:id) { 'master/invalid-path/' }
it { should respond_with(:not_found) }
end
context "invalid branch, valid path" do
- let(:id) { 'invalid-branch/README.md' }
+ let(:id) { 'invalid-branch/app/' }
it { should respond_with(:not_found) }
end
end