Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## HEAD (unreleased)

- Replace some references in tests with foobar style code (https://github.com/zombocom/dead_end/pull/38)

## 1.0.1

- Fix performance issue when evaluating multiple block combinations (https://github.com/zombocom/dead_end/pull/35)
Expand Down
4 changes: 2 additions & 2 deletions spec/fixtures/routes.txt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@
namespace :admin do
resource :session

match "/out_of_office(*path)", via: :all, to: redirect { |_params, req|
uri = URI(req.path.gsub("out_of_office", "in_office"))
match "/foobar(*path)", via: :all, to: redirect { |_params, req|
uri = URI(req.path.gsub("foobar", "foobaz"))
uri.query = req.query_string.presence
uri.to_s
}
Expand Down
2 changes: 1 addition & 1 deletion spec/perf/perf_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module DeadEnd
107 constraints -> { Rails.application.config.non_production } do
111 end
❯ 113 namespace :admin do
❯ 116 match "/out_of_office(*path)", via: :all, to: redirect { |_params, req|
❯ 116 match "/foobar(*path)", via: :all, to: redirect { |_params, req|
❯ 120 }
121 end
EOM
Expand Down
20 changes: 10 additions & 10 deletions spec/unit/code_search_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ class Foo
it "handles no spaces between blocks" do
search = CodeSearch.new(<<~'EOM')
require "rails_helper"
RSpec.describe TelehealthAppointment, type: :model do
describe "#participants_state" do
context "timezones workaround" do
it "should receive a time in UTC format and return the time with the"\
"office's UTC offset substracted from it" do
RSpec.describe Foo, type: :model do
describe "#bar" do
context "context" do
it "foos the bar with a foo and then bazes the foo with a bar to"\
"fooify the barred bar" do
travel_to DateTime.new(2020, 10, 1, 10, 0, 0) do
office = build(:office)
foo = build(:foo)
end
end
end
end
describe "#past?" do
context "more than 15 min have passed since appointment start time" do
describe "#baz?" do
context "baz has barred the foo" do
it "returns true" do # <== HERE
end
end
Expand All @@ -71,8 +71,8 @@ class Foo

it "handles no spaces between blocks" do
search = CodeSearch.new(<<~EOM)
context "timezones workaround" do
it "should receive a time in UTC format and return the time with the" do
context "foo bar" do
it "bars the foo" do
travel_to DateTime.new(2020, 10, 1, 10, 0, 0) do
end
end
Expand Down