Commit c1ef806
Changed files (4)
app
controllers
concerns
spec
controllers
models
android
app/controllers/concerns/internationalizationable.rb
@@ -16,7 +16,7 @@ module Internationalizationable
I18n.with_locale(params[:locale]) { yield }
end
- def default_url_options(options = {})
+ def default_url_options(*)
{ locale: I18n.locale }
end
end
spec/controllers/gyms_controller_spec.rb
@@ -101,7 +101,7 @@ describe GymsController do
end
describe "#show" do
- it 'loads the gym' do
+ it "loads the gym" do
gym = create(:gym)
get :show, id: gym.id
expect(assigns(:gym)).to eql(gym)
spec/models/android/import_spec.rb
@@ -20,7 +20,7 @@ describe Android::Import do
end
it "imports each training session" do
- mountain_time = ActiveSupport::TimeZone['America/Denver']
+ mountain_time = ActiveSupport::TimeZone["America/Denver"]
allow(user).to receive(:time_zone).and_return(mountain_time)
subject.import_from(directory)
training_session = user.training_sessions.order(:occurred_at).first
spec/models/user_spec.rb
@@ -223,7 +223,7 @@ describe User do
subject { create(:user) }
let(:email) { build(:email, :with_attachment) }
- it 'records the email' do
+ it "records the email" do
subject.add_to_inbox(email)
expect(subject.received_emails.count).to eql(1)
received_email = subject.received_emails.first