Skip to content

Commit

Permalink
Refactor RSpec syntax to use the new expect syntax
Browse files Browse the repository at this point in the history
- Replaced deprecated `should` syntax with the modern `expect` syntax in `feed_searcher_spec.rb`
  • Loading branch information
ssig33 committed Jul 8, 2024
1 parent a359bbf commit c3a1084
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/feed_searcher_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
# * it converts relative path to absolute url
#
it "includes hrefs of them as feed URLs" do
FeedSearcher.search("http://example.com/").should == %w[
expect(FeedSearcher.search("http://example.com/")).to eq(%w[
http://example.com/1
http://example.com/2
http://example.com/3
http://www.example.com/6
http://other-example.com/7
http://example.com/8
]
])
end
end

Expand All @@ -71,7 +71,7 @@
end

it "includes the given URL as a feed URL" do
FeedSearcher.search("http://example.com/").should == %w[
expect(FeedSearcher.search("http://example.com/")).to eq %w[
http://example.com/
]
end
Expand All @@ -98,7 +98,7 @@
end

it "includes the given URL as a feed URL" do
FeedSearcher.search("http://example.com/").should == %w[
expect(FeedSearcher.search("http://example.com/")).to eq %w[
http://example.com/
]
end
Expand Down Expand Up @@ -127,7 +127,7 @@
end

it "includes the given URL as a feed URL" do
FeedSearcher.search("http://example.com/feed.atom").should == %w[
expect(FeedSearcher.search("http://example.com/feed.atom")).to eq %w[
http://example.com/feed.atom
]
end
Expand All @@ -148,7 +148,7 @@
end

it "does not includes the given URL as a feed URL" do
FeedSearcher.search("http://example.com/p3p.xml").should == %w[
expect(FeedSearcher.search("http://example.com/p3p.xml")).to eq %w[
]
end
end
Expand Down Expand Up @@ -177,7 +177,7 @@
end

it "includes hrefs of them as feed URLs" do
FeedSearcher.search("http://example.com/").should == %w[
expect(FeedSearcher.search("http://example.com/")).to eq %w[
http://example.com/1
http://example.com/2
http://example.com/3
Expand Down

0 comments on commit c3a1084

Please sign in to comment.