Sha256: 00cdd36d8913f638fd6773d23da29c12e078e08ff61aea2e6d06f83c741f461b
Contents?: true
Size: 443 Bytes
Versions: 4
Compression:
Stored size: 443 Bytes
Contents
# frozen_string_literal: true RSpec.describe Unreliable do it "does nothing in prod" do Rails.env = "production" expect(Thing.where(word: "foo").to_sql).to end_with(%q(WHERE "things"."word" = 'foo')) ensure Rails.env = "test" end it "does nothing in dev" do Rails.env = "development" expect(Thing.where(word: "foo").to_sql).to end_with(%q(WHERE "things"."word" = 'foo')) ensure Rails.env = "test" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
unreliable-0.1.3 | spec/env_spec.rb |
unreliable-0.1.2 | spec/env_spec.rb |
unreliable-0.1.1 | spec/env_spec.rb |
unreliable-0.1.0 | spec/env_spec.rb |