summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-10-28 12:26:25 +0300
committergitlabhq <m@gitlabhq.com>2011-10-28 12:26:25 +0300
commit3fa770dd107d01c29741032703c3f69b9ff3f072 (patch)
tree2e0274dfda234771ea75ab143cf2a64501b36e01 /spec
parent89fa800e28e4b740b9de2e526f0f4354d8310ecb (diff)
parenta0171813391c8226802621a710798e376fea2f1e (diff)
downloadgitlab-ce-3fa770dd107d01c29741032703c3f69b9ff3f072.tar.gz
Merge branch 'new_issue' into dev
Diffstat (limited to 'spec')
-rw-r--r--spec/factories.rb1
-rw-r--r--spec/requests/issues_spec.rb19
2 files changed, 17 insertions, 3 deletions
diff --git a/spec/factories.rb b/spec/factories.rb
index cc0cd4e5e8f..36aa4fc9454 100644
--- a/spec/factories.rb
+++ b/spec/factories.rb
@@ -32,7 +32,6 @@ end
Factory.add(:issue, Issue) do |obj|
obj.title = Faker::Lorem.sentence
- obj.content = Faker::Lorem.sentences
end
Factory.add(:snippet, Snippet) do |obj|
diff --git a/spec/requests/issues_spec.rb b/spec/requests/issues_spec.rb
index 184f82931b7..b13e43adc6c 100644
--- a/spec/requests/issues_spec.rb
+++ b/spec/requests/issues_spec.rb
@@ -80,7 +80,6 @@ describe "Issues" do
describe "fill in" do
before do
fill_in "issue_title", :with => "bug 345"
- fill_in "issue_content", :with => "app bug 345"
click_link "Select user"
click_link @user.name
end
@@ -112,6 +111,23 @@ describe "Issues" do
end
end
+ describe "Show issue" do
+ before do
+ @issue = Factory :issue,
+ :author => @user,
+ :assignee => @user,
+ :project => project
+
+ visit project_issue_path(project, @issue)
+ end
+
+ it "should have valid show page for issue" do
+ page.should have_content @issue.title
+ page.should have_content @user.name
+ page.should have_content "today"
+ end
+ end
+
describe "Edit issue", :js => true do
before do
@issue = Factory :issue,
@@ -129,7 +145,6 @@ describe "Issues" do
describe "fill in" do
before do
fill_in "issue_title", :with => "bug 345"
- fill_in "issue_content", :with => "app bug 345"
end
it { expect { click_button "Save" }.to_not change {Issue.count} }