summaryrefslogtreecommitdiff
path: root/spec/helpers
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-08-08 11:52:09 +0300
committerrandx <dmitriy.zaporozhets@gmail.com>2012-08-08 11:52:09 +0300
commit04bad8257f1aec906e10576c425edcba3d9d8f90 (patch)
treee826bdfddea780259680810fe868fa78c0e20d1f /spec/helpers
parent6171a4d8ebd1602b987bc6d93fd19443696c155b (diff)
downloadgitlab-ce-04bad8257f1aec906e10576c425edcba3d9d8f90.tar.gz
Fixed markdown tests
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/gitlab_flavored_markdown_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/helpers/gitlab_flavored_markdown_spec.rb b/spec/helpers/gitlab_flavored_markdown_spec.rb
index 9ba2e911359..15fd21804eb 100644
--- a/spec/helpers/gitlab_flavored_markdown_spec.rb
+++ b/spec/helpers/gitlab_flavored_markdown_spec.rb
@@ -1,6 +1,6 @@
require "spec_helper"
-describe ApplicationHelper do
+describe GitlabMarkdownHelper do
before do
@project = Project.find_by_path("gitlabhq") || Factory(:project)
@commit = @project.repo.commits.first.parents.first
@@ -10,10 +10,10 @@ describe ApplicationHelper do
end
describe "#gfm" do
- it "should raiase an error if @project is not set" do
+ it "should return text if @project is not set" do
@project = nil
- expect { gfm("foo") }.to raise_error
+ gfm("foo").should == "foo"
end
describe "referencing a commit" do