diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2018-05-01 10:18:32 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-05-01 10:18:32 +0300 |
commit | 119c48757961335f1924bd73df76cd2a2ac1facc (patch) | |
tree | a470ec45442e9058a9033a9d7474a99fac2fcd19 /spec | |
parent | ff68f961c6aacd90cb4bf0e64f1d2f607c9fd2c7 (diff) |
Fix spec/features/projects/issues/user_toggles_subscription_spec.rb
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/projects/issues/user_toggles_subscription_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/projects/issues/user_toggles_subscription_spec.rb b/spec/features/projects/issues/user_toggles_subscription_spec.rb index 117a614b980..c2b2a193682 100644 --- a/spec/features/projects/issues/user_toggles_subscription_spec.rb +++ b/spec/features/projects/issues/user_toggles_subscription_spec.rb @@ -1,9 +1,9 @@ require "spec_helper" describe "User toggles subscription", :js do - set(:project) { create(:project_empty_repo, :public) } - set(:user) { create(:user) } - set(:issue) { create(:issue, project: project, author: user) } + let(:project) { create(:project_empty_repo, :public) } + let(:user) { create(:user) } + let(:issue) { create(:issue, project: project, author: user) } before do project.add_developer(user) @@ -12,7 +12,7 @@ describe "User toggles subscription", :js do visit(project_issue_path(project, issue)) end - it "unsibscribes from issue" do + it "unsubscribes from issue" do subscription_button = find(".js-issuable-subscribe-button") # Check we're subscribed. |