Skip to content

Commit ff7f867

Browse files
author
Lorin Thwaits
committed
Grammatical corrections for RSpec example names
1 parent 3899e19 commit ff7f867

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

spec/active_force/association_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
expect(post).to respond_to(:comments)
2323
end
2424

25-
it "should return a ActiveQuery object" do
25+
it "should return an ActiveQuery object" do
2626
expect(post.comments).to be_a ActiveForce::ActiveQuery
2727
end
2828

spec/active_force/callbacks_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
end
99

1010
describe "save" do
11-
it 'call action callback when save a record' do
11+
it 'call action callback when saving a record' do
1212
whizbanged = Whizbang.new
1313
whizbanged.save
1414
expect(whizbanged.updated_from).to eq 'Rails'

spec/active_force/query_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
expect(query.where("name like '%a%'").to_s).to eq "SELECT Id, name, etc FROM table_name WHERE (name like '%a%')"
4444
end
4545

46-
it "should add multiples conditions to a query with parentheses" do
46+
it "should add multiple conditions to a query with parentheses" do
4747
expect(query.where("condition1 = 1").where("condition2 = 2 OR condition3 = 3").to_s).to eq "SELECT Id, name, etc FROM table_name WHERE (condition1 = 1) AND (condition2 = 2 OR condition3 = 3)"
4848
end
4949
end
@@ -81,11 +81,11 @@
8181
end
8282

8383
describe ".order" do
84-
it "should add a order condition in the statment" do
84+
it "should add an order condition in the statement" do
8585
expect(query.order("name desc").to_s).to eq "SELECT Id, name, etc FROM table_name ORDER BY name desc"
8686
end
8787

88-
it "should add a order condition in the statment with WHERE and LIMIT" do
88+
it "should add an order condition in the statement with WHERE and LIMIT" do
8989
expect(query.where("condition1 = 1").order("name desc").limit(1).to_s).to eq "SELECT Id, name, etc FROM table_name WHERE (condition1 = 1) ORDER BY name desc LIMIT 1"
9090
end
9191
end
@@ -97,7 +97,7 @@
9797
join
9898
end
9999

100-
it 'should add another select statment on the current select' do
100+
it 'should add another select statement on the current select' do
101101
expect(query.join(join_query).to_s).to eq 'SELECT Id, name, etc, (SELECT Id, name, etc FROM join_table_name) FROM table_name'
102102
end
103103
end

0 commit comments

Comments
 (0)