Skip to content

Commit

Permalink
Fix typo in test names: shoud -> should
Browse files Browse the repository at this point in the history
  • Loading branch information
gorandalum committed Sep 26, 2014
1 parent 8ae83cd commit fec6bc8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions spec/rails_best_practices/reviews/use_scope_access_review_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Reviews
let(:runner) { Core::Runner.new(reviews: UseScopeAccessReview.new) }

context "if" do
it "shoud use scope access" do
it "should use scope access" do
content = <<-EOF
class PostsController < ApplicationController
def edit
Expand All @@ -24,7 +24,7 @@ def edit
expect(runner.errors[0].to_s).to eq("app/controllers/posts_controller.rb:5 - use scope access")
end

it "shoud use scope access with if in one line" do
it "should use scope access with if in one line" do
content = <<-EOF
class PostsController < ApplicationController
def edit
Expand All @@ -39,7 +39,7 @@ def edit
expect(runner.errors[0].to_s).to eq("app/controllers/posts_controller.rb:5 - use scope access")
end

it "shoud use scope access with '? :'" do
it "should use scope access with '? :'" do
content = <<-EOF
class PostsController < ApplicationController
def edit
Expand All @@ -54,7 +54,7 @@ def edit
expect(runner.errors[0].to_s).to eq("app/controllers/posts_controller.rb:5 - use scope access")
end

it "shoud use scope access by comparing with id" do
it "should use scope access by comparing with id" do
content = <<-EOF
class PostsController < ApplicationController
def edit
Expand All @@ -72,7 +72,7 @@ def edit
expect(runner.errors[0].to_s).to eq("app/controllers/posts_controller.rb:5 - use scope access")
end

it "shoud use scope access with current_user ==" do
it "should use scope access with current_user ==" do
content = <<-EOF
class PostsController < ApplicationController
def edit
Expand All @@ -90,7 +90,7 @@ def edit
expect(runner.errors[0].to_s).to eq("app/controllers/posts_controller.rb:5 - use scope access")
end

it "shoud use scope access by current_user.id ==" do
it "should use scope access by current_user.id ==" do
content = <<-EOF
class PostsController < ApplicationController
def edit
Expand All @@ -110,7 +110,7 @@ def edit
end

context "unless" do
it "shoud use scope access" do
it "should use scope access" do
content = <<-EOF
class PostsController < ApplicationController
def edit
Expand All @@ -128,7 +128,7 @@ def edit
expect(runner.errors[0].to_s).to eq("app/controllers/posts_controller.rb:5 - use scope access")
end

it "shoud use scope access by comparing with id" do
it "should use scope access by comparing with id" do
content = <<-EOF
class PostsController < ApplicationController
def edit
Expand All @@ -146,7 +146,7 @@ def edit
expect(runner.errors[0].to_s).to eq("app/controllers/posts_controller.rb:5 - use scope access")
end

it "shoud use scope access with current_user ==" do
it "should use scope access with current_user ==" do
content = <<-EOF
class PostsController < ApplicationController
def edit
Expand All @@ -164,7 +164,7 @@ def edit
expect(runner.errors[0].to_s).to eq("app/controllers/posts_controller.rb:5 - use scope access")
end

it "shoud use scope access by current_user.id ==" do
it "should use scope access by current_user.id ==" do
content = <<-EOF
class PostsController < ApplicationController
def edit
Expand Down

0 comments on commit fec6bc8

Please sign in to comment.