|
|
|
@ -90,7 +90,7 @@ RSpec.describe SchemesController, type: :request do
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "shows the total organisations count" do |
|
|
|
|
expect(CGI.unescape_html(response.body)).to match("<strong>#{schemes.count}</strong> total schemes.") |
|
|
|
|
expect(CGI.unescape_html(response.body)).to match("<strong>#{schemes.count}</strong> total schemes") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context "when params scheme_id is present" do |
|
|
|
@ -113,7 +113,7 @@ RSpec.describe SchemesController, type: :request do
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "shows the total schemes count" do |
|
|
|
|
expect(CGI.unescape_html(response.body)).to match("<strong>#{total_schemes_count}</strong> total schemes.") |
|
|
|
|
expect(CGI.unescape_html(response.body)).to match("<strong>#{total_schemes_count}</strong> total schemes") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "shows which schemes are being shown on the current page" do |
|
|
|
@ -138,7 +138,7 @@ RSpec.describe SchemesController, type: :request do
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "shows the total schemes count" do |
|
|
|
|
expect(CGI.unescape_html(response.body)).to match("<strong>#{total_schemes_count}</strong> total schemes.") |
|
|
|
|
expect(CGI.unescape_html(response.body)).to match("<strong>#{total_schemes_count}</strong> total schemes") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "has pagination links" do |
|
|
|
|