Browse Source

lint fixes

pull/661/head
Dushan Despotovic 3 years ago
parent
commit
8f141b1449
  1. 4
      spec/models/case_log_spec.rb

4
spec/models/case_log_spec.rb

@ -211,12 +211,12 @@ RSpec.describe CaseLog do
}) })
end end
context "production specific code" do context "when a case log is created in production" do
before do before do
allow(Rails.env).to receive(:production?).and_return(true) allow(Rails.env).to receive(:production?).and_return(true)
end end
it "derives that all forms are general needs when in production" do it "derives that all forms are general needs" do
case_log = FactoryBot.create(:case_log) case_log = FactoryBot.create(:case_log)
record_from_db = ActiveRecord::Base.connection.execute("select needstype from case_logs where id=#{case_log.id}").to_a[0] record_from_db = ActiveRecord::Base.connection.execute("select needstype from case_logs where id=#{case_log.id}").to_a[0]
expect(record_from_db["needstype"]).to eq(1) expect(record_from_db["needstype"]).to eq(1)

Loading…
Cancel
Save