Sha256: a04954f31315b90eb3bc53749830b989950f7c7e3f942573fd0d26c57ff9afd8

Contents?: true

Size: 435 Bytes

Versions: 2

Compression:

Stored size: 435 Bytes

Contents

# 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'))
  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'))
  ensure
    Rails.env = "test"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
unreliable-0.9.1 spec/env_spec.rb
unreliable-0.9.0 spec/env_spec.rb