spec/env_spec.rb in unreliable-0.9.1 vs spec/env_spec.rb in unreliable-0.10.0
- old
+ new
@@ -1,17 +1,17 @@
# frozen_string_literal: true
RSpec.describe Unreliable do
it "does nothing in prod" do
Rails.env = "production"
- expect(Cat.where(word: "foo").to_sql).to end_with(%q(WHERE "cats"."word" = 'foo'))
+ expect(Cat.where(word: "foo").to_sql).to end_with(adapter_text(%q(WHERE "cats"."word" = 'foo')))
ensure
Rails.env = "test"
end
it "does nothing in dev" do
Rails.env = "development"
- expect(Cat.where(word: "foo").to_sql).to end_with(%q(WHERE "cats"."word" = 'foo'))
+ expect(Cat.where(word: "foo").to_sql).to end_with(adapter_text(%q(WHERE "cats"."word" = 'foo')))
ensure
Rails.env = "test"
end
end