Browse Source

lint

pull/863/head
Ted-U 3 years ago committed by baarkerlounger
parent
commit
b273ae2583
  1. 5
      spec/features/log_spec.rb

5
spec/features/log_spec.rb

@ -155,14 +155,15 @@ RSpec.describe "Log Features" do
expect(page).to have_content("2022") expect(page).to have_content("2022")
end end
end end
context "When the sales log feature flag is toggled" do
context "when the sales log feature flag is toggled" 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 "hides the create sales log button in production" do it "hides the create sales log button in production" do
visit("/logs") visit("/logs")
expect(page).to_not have_content("Create a new sales log") expect(page).not_to have_content("Create a new sales log")
end end
end end
end end

Loading…
Cancel
Save