Permalink
Browse files

Replace "scenario" alias with "it" in system specs

  • Loading branch information...
ruralocity committed Jan 9, 2018
1 parent 2238769 commit cd38682c2fa1f7e710a6462f625077d184199ad6
@@ -8,7 +8,7 @@
owner: user)
}
scenario "user uploads an attachment" do
it "user uploads an attachment" do
login_as user, scope: :user
visit project_path(project)
click_link "Add Note"
@@ -1,7 +1,7 @@
require 'rails_helper'
RSpec.describe "Projects", type: :system do
scenario "user creates a new project" do
it "user creates a new project" do
user = FactoryGirl.create(:user)
# using our customer login helper:
# sign_in_as user
@@ -23,7 +23,7 @@
}.to change(user.projects, :count).by(1)
end
scenario "user completes a project" do
it "user completes a project" do
user = FactoryGirl.create(:user)
project = FactoryGirl.create(:project, owner: user)
login_as user, scope: :user
@@ -7,7 +7,7 @@
ActiveJob::Base.queue_adapter = :test
end
scenario "user signs in" do
it "user signs in" do
visit root_path
click_link "Sign In"
fill_in "Email", with: user.email
@@ -3,7 +3,7 @@
RSpec.describe "Sign-ups", type: :system do
include ActiveJob::TestHelper
scenario "user successfully signs up" do
it "user successfully signs up" do
visit root_path
click_link "Sign up"
@@ -9,7 +9,7 @@
}
let!(:task) { project.tasks.create!(name: "Finish RSpec tutorial") }
scenario "user toggles a task", js: true do
it "user toggles a task", js: true do
login_as user, scope: :user
go_to_project "RSpec tutorial"

0 comments on commit cd38682

Please sign in to comment.