Skip to content

Commit

Permalink
build: add .rspec file, remove duplicated spec and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjrice committed Apr 12, 2024
1 parent 0795c44 commit 7253d66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--format documentation
--color
--require spec_helper
7 changes: 1 addition & 6 deletions spec/atco_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frozen_string_literal: true

require "#{File.dirname(__FILE__)}/spec_helper"
require "json"

describe Atco do # rubocop:disable Metrics/BlockLength
Expand Down Expand Up @@ -174,11 +173,7 @@
expect(@atco[:journeys]["139748"]).to be_a_kind_of(Atco::Journey)
end

it "should parse 6 stops for joureny 139748" do
expect(@atco[:journeys]["139748"].stops.size).to eq(6)
end

it "should parse 6 stops for joureny 139748" do
it "should parse 6 stops for journey 139748" do
expect(@atco[:journeys]["139748"].stops.size).to eq(6)
end

Expand Down

0 comments on commit 7253d66

Please sign in to comment.