• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

osulp / Scholars-Archive / 6574

29 Nov 2021 11:02PM UTC coverage: 89.432% (-0.1%) from 89.565%
6574

Pull #2310

circleci

Corey Gillen
Create rake task for replacing conference_section
Pull Request #2310: Update conference section predicate

1 of 1 new or added line in 1 file covered. (100.0%)

7396 of 8270 relevant lines covered (89.43%)

46.8 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

58.82
/spec/features/read_only_mode_spec.rb
1
# frozen_string_literal: true
2

3
require 'rails_helper'
1✔
4
include Warden::Test::Helpers
1✔
5

6
RSpec.feature 'Read Only Mode', type: :feature do
1✔
7
  let(:user) do
1✔
8
    User.new(email: 'test@example.com', username: 'test', guest: false, api_person_updated_at: DateTime.now) { |u| u.save!(validate: false) }
2✔
9
  end
10

11
  context 'a logged in user' do
1✔
12
    before do
1✔
13
      login_as user
1✔
14
    end
15

16
    it 'View Articles Tabs', js: false do
1✔
17
      visit('/concern/articles/new')
1✔
18
      expect(page).to have_content('Add New Article')
×
19
      allow(Flipflop).to receive(:read_only?).and_return(true)
×
20
      visit('/concern/articles/new')
×
21
      expect(page).to have_content('This system is in read-only mode for maintenance.')
×
22
      allow(Flipflop).to receive(:read_only?).and_return(false)
×
23
      visit('/concern/articles/new')
×
24
      expect(page).to have_content('Add New Article')
×
25
    end
26
  end
27
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc