Commit 119c4875 authored by blackst0ne's avatar blackst0ne Committed by Stan Hu

Fix spec/features/projects/issues/user_toggles_subscription_spec.rb

parent ff68f961
require "spec_helper" require "spec_helper"
describe "User toggles subscription", :js do describe "User toggles subscription", :js do
set(:project) { create(:project_empty_repo, :public) } let(:project) { create(:project_empty_repo, :public) }
set(:user) { create(:user) } let(:user) { create(:user) }
set(:issue) { create(:issue, project: project, author: user) } let(:issue) { create(:issue, project: project, author: user) }
before do before do
project.add_developer(user) project.add_developer(user)
...@@ -12,7 +12,7 @@ describe "User toggles subscription", :js do ...@@ -12,7 +12,7 @@ describe "User toggles subscription", :js do
visit(project_issue_path(project, issue)) visit(project_issue_path(project, issue))
end end
it "unsibscribes from issue" do it "unsubscribes from issue" do
subscription_button = find(".js-issuable-subscribe-button") subscription_button = find(".js-issuable-subscribe-button")
# Check we're subscribed. # Check we're subscribed.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment