Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJohannes Schleifenbaum <johannes@js-webcoding.de>2013-07-29 14:46:00 +0400
committerJohannes Schleifenbaum <johannes@js-webcoding.de>2013-07-29 14:47:06 +0400
commitcd19f82e5126e087ea6ef3b1bc3307bb74efacbd (patch)
tree83c0eeabeedec6a14262bcf0edc776adf5ef332d /spec
parent5e0e97ec5dd963a33a6522b0095a15abf987d6e0 (diff)
Fix typos
Diffstat (limited to 'spec')
-rw-r--r--spec/helpers/gitlab_markdown_helper_spec.rb2
-rw-r--r--spec/lib/auth_spec.rb2
-rw-r--r--spec/models/issue_spec.rb2
-rw-r--r--spec/models/milestone_spec.rb4
-rw-r--r--spec/models/namespace_spec.rb2
-rw-r--r--spec/models/project_spec.rb2
-rw-r--r--spec/requests/api/users_spec.rb2
-rw-r--r--spec/support/select2_helper.rb2
-rw-r--r--spec/tasks/gitlab/backup_rake_spec.rb2
9 files changed, 10 insertions, 10 deletions
diff --git a/spec/helpers/gitlab_markdown_helper_spec.rb b/spec/helpers/gitlab_markdown_helper_spec.rb
index 0f206f47234..a52606bb536 100644
--- a/spec/helpers/gitlab_markdown_helper_spec.rb
+++ b/spec/helpers/gitlab_markdown_helper_spec.rb
@@ -287,7 +287,7 @@ describe GitlabMarkdownHelper do
gfm(":invalid-emoji:").should_not match(/<img/)
end
- it "should work independet of reference links (i.e. without @project being set)" do
+ it "should work independent of reference links (i.e. without @project being set)" do
@project = nil
gfm(":+1:").should match(/<img/)
end
diff --git a/spec/lib/auth_spec.rb b/spec/lib/auth_spec.rb
index a7ce97554ea..903d27686d3 100644
--- a/spec/lib/auth_spec.rb
+++ b/spec/lib/auth_spec.rb
@@ -36,7 +36,7 @@ describe Gitlab::Auth do
end
- it "should create from auth if user doesnot exist"do
+ it "should create from auth if user does not exist"do
User.stub find_by_extern_uid_and_provider: nil
User.stub find_by_email: nil
gl_auth.should_receive :create_from_omniauth
diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb
index ed0a725add6..fbdf4eb52eb 100644
--- a/spec/models/issue_spec.rb
+++ b/spec/models/issue_spec.rb
@@ -45,7 +45,7 @@ describe Issue do
end
describe '#is_being_reassigned?' do
- it 'returnes issues assigned to user' do
+ it 'returns issues assigned to user' do
user = create :user
2.times do
diff --git a/spec/models/milestone_spec.rb b/spec/models/milestone_spec.rb
index d2819b7c1d6..dfda1c87379 100644
--- a/spec/models/milestone_spec.rb
+++ b/spec/models/milestone_spec.rb
@@ -127,11 +127,11 @@ describe Milestone do
issue = create :issue
end
- it 'should be true if milestone active and all nestied issues closed' do
+ it 'should be true if milestone active and all nested issues closed' do
milestone.can_be_closed?.should be_true
end
- it 'should be false if milestone active and not all nestied issues closed' do
+ it 'should be false if milestone active and not all nested issues closed' do
issue.milestone = milestone
issue.save
diff --git a/spec/models/namespace_spec.rb b/spec/models/namespace_spec.rb
index b40a07951eb..0a0509bcd27 100644
--- a/spec/models/namespace_spec.rb
+++ b/spec/models/namespace_spec.rb
@@ -59,7 +59,7 @@ describe Namespace do
@namespace.stub(path_changed?: true)
end
- it "should raise error when dirtory exists" do
+ it "should raise error when directory exists" do
expect { @namespace.move_dir }.to raise_error("namespace directory cannot be moved")
end
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb
index 0845d2edea3..65b951c9619 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -235,7 +235,7 @@ describe Project do
project.can_have_issues_tracker_id?.should be_false
end
- it "should be always false if issues disbled" do
+ it "should be always false if issues disabled" do
project.issues_enabled = false
ext_project.issues_enabled = false
diff --git a/spec/requests/api/users_spec.rb b/spec/requests/api/users_spec.rb
index 33df9f7ece5..2f4aaae3890 100644
--- a/spec/requests/api/users_spec.rb
+++ b/spec/requests/api/users_spec.rb
@@ -247,7 +247,7 @@ describe API::API do
end
describe "GET /user/keys/:id" do
- it "should returm single key" do
+ it "should return single key" do
user.keys << key
user.save
get api("/user/keys/#{key.id}", user)
diff --git a/spec/support/select2_helper.rb b/spec/support/select2_helper.rb
index 20dd9bf437c..32c1ded2e9d 100644
--- a/spec/support/select2_helper.rb
+++ b/spec/support/select2_helper.rb
@@ -1,4 +1,4 @@
-# Select2 ajax programatic helper
+# Select2 ajax programmatic helper
# It allows you to select value from select2
#
# Params
diff --git a/spec/tasks/gitlab/backup_rake_spec.rb b/spec/tasks/gitlab/backup_rake_spec.rb
index 4ad63114cb4..cba243226db 100644
--- a/spec/tasks/gitlab/backup_rake_spec.rb
+++ b/spec/tasks/gitlab/backup_rake_spec.rb
@@ -30,7 +30,7 @@ describe 'gitlab:app namespace rake task' do
let(:gitlab_version) { %x{git rev-parse HEAD}.gsub(/\n/,"") }
- it 'should fail on mismach' do
+ it 'should fail on mismatch' do
YAML.stub load_file: {gitlab_version: gitlab_version.reverse}
expect { run_rake_task }.to raise_error SystemExit
end