Skip to content

Commit

Permalink
Rename shared context
Browse files Browse the repository at this point in the history
  • Loading branch information
werebus committed Nov 13, 2024
1 parent e2f5883 commit 9e0b565
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/models/bus_stop/import_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
describe '#import!' do
subject(:call) { described_class.new(source).import! }

include_context 'a dummy source'
include_context 'with a dummy source'

before { create :bus_stop, name: 'Old Name', hastus_id: '1' }

Expand Down
2 changes: 1 addition & 1 deletion spec/models/bus_stops_route/import_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
describe '#import!' do
subject(:call) { described_class.new(source).import! }

include_context 'a dummy source'
include_context 'with a dummy source'

let!(:route) { create :route, number: 'ER' }

Expand Down
2 changes: 1 addition & 1 deletion spec/models/route/import_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
describe '#import!' do
subject(:call) { described_class.new(source).import! }

include_context 'a dummy source'
include_context 'with a dummy source'

before { create :route, number: 'ER', description: 'Old description' }

Expand Down
2 changes: 1 addition & 1 deletion spec/support/import_shared_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'gtfs'

RSpec.shared_context 'a dummy source' do
RSpec.shared_context 'with a dummy source' do
let(:source) { instance_double GTFS::Source }

let(:stop_data) { GTFS::Stop.parse_stops file_fixture('stops.txt').read }
Expand Down

0 comments on commit 9e0b565

Please sign in to comment.