From abbc04daa044da3a5f02e941150f4e0716dd84d3 Mon Sep 17 00:00:00 2001 From: Andrew Cantino Date: Tue, 29 Mar 2016 21:20:45 -0700 Subject: [PATCH] Minor grammar --- app/models/agents/google_flights_agent.rb | 10 +++++----- spec/models/agents/google_flights_spec.rb | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/models/agents/google_flights_agent.rb b/app/models/agents/google_flights_agent.rb index 350b6e18..f7a82521 100644 --- a/app/models/agents/google_flights_agent.rb +++ b/app/models/agents/google_flights_agent.rb @@ -14,13 +14,13 @@ module Agents The `origin` and `destination` options require an [airport code](http://www.expedia.com/daily/airports/AirportCodes.asp). - All the default options must exist. For `infantInSeatCount`, `infantInLapCount`, `seniorCount`, and `childCount`, leave them to the default value of `0` if its not necessary. + All the default options must exist. For `infantInSeatCount`, `infantInLapCount`, `seniorCount`, and `childCount`, leave them to the default value of `0` if you do not need them. - Make sure `date` and `return_date` is in this type of date format `YYYY-MM-DAY`. + Make sure `date` and `return_date` is in this date format: `YYYY-MM-DAY`. - You can choose one way ticket only by setting `roundtrip` to `false`. + You can choose one way tickets only by setting `roundtrip` to `false`. - You can limit the number of `solutions` returned back. The first solution is the lowest priced ticket. + You can limit the number of `solutions` returned. The first solution will be the lowest priced ticket. MD event_description <<-MD @@ -88,7 +88,7 @@ module Agents errors.add(:base, "Infant In Lap Count") unless options['infantInLapCount'].present? errors.add(:base, "Senior Count must exist") unless options['seniorCount'].present? errors.add(:base, "Solutions must exist") unless options['solutions'].present? - errors.add(:base, "Returned Date must exist") if options["return_date"].blank? && boolify(options['roundtrip']) + errors.add(:base, "Return Date must exist") if options["return_date"].blank? && boolify(options['roundtrip']) end def working? diff --git a/spec/models/agents/google_flights_spec.rb b/spec/models/agents/google_flights_spec.rb index a1cec9db..28f5994d 100644 --- a/spec/models/agents/google_flights_spec.rb +++ b/spec/models/agents/google_flights_spec.rb @@ -88,7 +88,7 @@ describe Agents::GoogleFlightsAgent do expect(@checker).not_to be_valid end - it "should require Returned Date" do + it "should require Return Date" do @checker.options['roundtrip'] = true @checker.options['return_date'] = nil expect(@checker).not_to be_valid