Skip to content

Commit 93f297d

Browse files
committed
Specs. Make requiring rails_helper.rb a little bit shorter
1 parent 69ed040 commit 93f297d

16 files changed

+16
-16
lines changed

spec/dynamoid/adapter_plugin/aws_sdk_v3_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
require 'dynamoid/adapter_plugin/aws_sdk_v3'
4-
require File.expand_path(File.dirname(__FILE__) + '../../../spec_helper')
4+
require 'spec_helper'
55

66
describe Dynamoid::AdapterPlugin::AwsSdkV3 do
77
#

spec/dynamoid/adapter_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
3+
require 'spec_helper'
44

55
describe Dynamoid::Adapter do
66
subject { described_class.new }

spec/dynamoid/associations/association_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
3+
require 'spec_helper'
44

55
describe Dynamoid::Associations::Association do
66
let(:subscription) { Subscription.create }

spec/dynamoid/associations/belongs_to_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require 'active_support'
44
require 'active_support/core_ext/object'
55

6-
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
6+
require 'spec_helper'
77

88
describe Dynamoid::Associations::BelongsTo do
99
context 'has many' do

spec/dynamoid/associations/has_and_belongs_to_many_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
3+
require 'spec_helper'
44

55
describe Dynamoid::Associations::HasAndBelongsToMany do
66
let(:subscription) { Subscription.create }

spec/dynamoid/associations/has_many_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
3+
require 'spec_helper'
44

55
describe Dynamoid::Associations::HasMany do
66
let(:magazine) { Magazine.create }

spec/dynamoid/associations/has_one_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require 'active_support'
44
require 'active_support/core_ext/object'
55

6-
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
6+
require 'spec_helper'
77

88
describe Dynamoid::Associations::HasOne do
99
let(:magazine) { Magazine.create }

spec/dynamoid/associations_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
3+
require 'spec_helper'
44

55
describe Dynamoid::Associations do
66
let(:magazine) { Magazine.create }

spec/dynamoid/criteria/chain_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
3+
require 'spec_helper'
44

55
describe Dynamoid::Criteria::Chain do
66
let(:time) { DateTime.now }

spec/dynamoid/criteria_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
3+
require 'spec_helper'
44

55
describe Dynamoid::Criteria do
66
let!(:user1) { User.create(name: 'Josh', email: '[email protected]', admin: true) }

0 commit comments

Comments
 (0)